Skip to content

Commit

Permalink
Merge pull request #2813 from martin-frbg/issue2804-2
Browse files Browse the repository at this point in the history
Fix for c_check misinterpreting arm64 in uname -m output as armv7
  • Loading branch information
martin-frbg authored Sep 1, 2020
2 parents 68b1713 + e4900ca commit 18bfb6d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion c_check
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ $hostos = `uname -s | sed -e s/\-.*//`; chop($hostos);
$hostarch = `uname -m | sed -e s/i.86/x86/`;chop($hostarch);
$hostarch = `uname -p` if ($hostos eq "AIX");
$hostarch = "x86_64" if ($hostarch eq "amd64");
$hostarch = "arm" if ($hostarch =~ /^arm.*/);
$hostarch = "arm" if ($hostarch ne "arm64" && $hostarch =~ /^arm.*/);
$hostarch = "arm64" if ($hostarch eq "aarch64");
$hostarch = "power" if ($hostarch =~ /^(powerpc|ppc).*/);
$hostarch = "zarch" if ($hostarch eq "s390x");
Expand Down

0 comments on commit 18bfb6d

Please sign in to comment.