diff --git a/build-ios.sh b/build-ios.sh index 70802c1c0..1fc411a7c 100755 --- a/build-ios.sh +++ b/build-ios.sh @@ -25,7 +25,7 @@ elif [ "$1" == "debug" ]; then fi # Set Architecture: arm64, arm64e or x86_64 -IOS_ARCH="x86_64" +IOS_ARCH=$(/usr/bin/uname -m) if [ "$1" == "arm64" ]; then IOS_ARCH="arm64" shift diff --git a/build.sh b/build.sh index 6b9886688..fa52705c6 100755 --- a/build.sh +++ b/build.sh @@ -80,8 +80,8 @@ elif [ "$PARAM1" == "x86_64" ] || [ "$PARAM2" == "x86_64" ] || [ "$PARAM3" == "x echo "MAC_ARCH = x86_64" shift else - MAC_ARCH="x86_64" - echo "Assuming default MAC_ARCH = x86_64" + MAC_ARCH=$(/usr/bin/uname -m) + echo "Using current machine MAC_ARCH = $MAC_ARCH" fi CUSTOM_CMAKE_CXX_FLAG=""