Skip to content

Commit e4900ca

Browse files
authored
Fix c_check misinterpreting arm64 in uname output to mean armv7
additionla fix for upcoming OSX on ARM64 related to #2804, as suggested by fxcoudert in #2805
1 parent b87a77d commit e4900ca

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

c_check

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ $hostos = `uname -s | sed -e s/\-.*//`; chop($hostos);
88
$hostarch = `uname -m | sed -e s/i.86/x86/`;chop($hostarch);
99
$hostarch = `uname -p` if ($hostos eq "AIX");
1010
$hostarch = "x86_64" if ($hostarch eq "amd64");
11-
$hostarch = "arm" if ($hostarch =~ /^arm.*/);
11+
$hostarch = "arm" if ($hostarch ne "arm64" && $hostarch =~ /^arm.*/);
1212
$hostarch = "arm64" if ($hostarch eq "aarch64");
1313
$hostarch = "power" if ($hostarch =~ /^(powerpc|ppc).*/);
1414
$hostarch = "zarch" if ($hostarch eq "s390x");

0 commit comments

Comments
 (0)