Skip to content

Commit

Permalink
BuildCore: Set appropriate platform when running on an arm64 iOS Simu…
Browse files Browse the repository at this point in the history
…lator
  • Loading branch information
OatmealDome committed Jun 22, 2023
1 parent bdd2758 commit 7f14840
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion Source/iOS/App/Project/Scripts/BuildCore.sh
Expand Up @@ -7,13 +7,20 @@ PATH="$PATH:/opt/homebrew/bin:/usr/local/bin"
REPO_ROOT_DIR="$PROJECT_DIR/../../.."
CMAKE_BUILD_DIR="$REPO_ROOT_DIR/build-$PLATFORM_NAME-$DOL_CORE_BUILD_TARGET"

MACHINE_ARCH="$(arch)"

case $PLATFORM_NAME in
iphoneos)
PLATFORM=OS64
PLATFORM_DEPLOYMENT_TARGET=$IPHONEOS_DEPLOYMENT_TARGET
;;
iphonesimulator)
PLATFORM=SIMULATOR64
if [ "$MACHINE_ARCH" = "arm64" ]; then
PLATFORM=SIMULATORARM64
else
PLATFORM=SIMULATOR64
fi

PLATFORM_DEPLOYMENT_TARGET=$IPHONEOS_DEPLOYMENT_TARGET
;;
appletvos)
Expand Down

0 comments on commit 7f14840

Please sign in to comment.