8265192: [macos_aarch64] configure script fails if GNU uname in PATH

Reviewed-by: erikj
This commit is contained in:
Nick Gasson 2021-04-15 01:43:22 +00:00
parent e167577888
commit f4c3efd9cf

@ -104,6 +104,10 @@ fi
# Test and fix cpu on macos-aarch64, uname -p reports arm, buildsys expects aarch64
echo $OUT | grep arm-apple-darwin > /dev/null 2> /dev/null
if test $? != 0; then
# The GNU version of uname may be on the PATH which reports arm64 instead
echo $OUT | grep arm64-apple-darwin > /dev/null 2> /dev/null
fi
if test $? = 0; then
if [ `uname -m` = arm64 ]; then
OUT=aarch64`echo $OUT | sed -e 's/[^-]*//'`