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:
parent
4c616173e4
commit
642aaba2e0
2
c_check
2
c_check
|
@ -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…
Reference in New Issue