Fix detection of ARM architectures in c_check.

This is necessary to avoid the false detection of a cross-compiling environment.
This commit is contained in:
Sébastien Villemot 2015-04-29 18:14:21 +02:00
parent 4c616173e4
commit 642aaba2e0
1 changed files with 2 additions and 0 deletions

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"};