Browse Source

Fix detection of ARM architectures in c_check.

This is necessary to avoid the false detection of a cross-compiling environment.
tags/v0.2.15^2
Sébastien Villemot 10 years ago
parent
commit
642aaba2e0
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      c_check

+ 2
- 0
c_check View File

@@ -4,6 +4,8 @@
$hostos = `uname -s | sed -e s/\-.*//`; chop($hostos);
$hostarch = `uname -m | sed -e s/i.86/x86/`;chop($hostarch);
$hostarch = "x86_64" if ($hostarch eq "amd64");
$hostarch = "arm" if ($hostarch =~ /^arm.*/);
$hostarch = "arm64" if ($hostarch eq "aarch64");

$binary = $ENV{"BINARY"};



Loading…
Cancel
Save