Skip to content

Commit

Permalink
Set the default arch to the build machine's one if not specified
Browse files Browse the repository at this point in the history
  • Loading branch information
tkukielk committed May 25, 2024
1 parent 5bd9c04 commit 7e2aa43
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion build-ios.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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=""
Expand Down

0 comments on commit 7e2aa43

Please sign in to comment.