8265192: [macos_aarch64] configure script fails if GNU uname in PATH
Reviewed-by: erikj
This commit is contained in:
parent
e167577888
commit
f4c3efd9cf
4
make/autoconf/build-aux/config.guess
vendored
4
make/autoconf/build-aux/config.guess
vendored
@ -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/[^-]*//'`
|
||||
|
Loading…
x
Reference in New Issue
Block a user