Skip to content

Commit 18bfb6d

Browse files
authored
Merge pull request #2813 from martin-frbg/issue2804-2
Fix for c_check misinterpreting arm64 in uname -m output as armv7
2 parents 68b1713 + e4900ca commit 18bfb6d

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)