Skip to content

Commit

Permalink
Merge pull request #462 from danger/apple_silicon_build
Browse files Browse the repository at this point in the history
Build for Apple Silicon on Apple Silicon devices
  • Loading branch information
f-meloni authored Sep 14, 2021
2 parents d4a815c + 30185b6 commit 533d307
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Scripts/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,11 @@ lower $SWIFT_VERSION '5.3.0'
if [[ "$?" -eq 0 || "$OSTYPE" == "darwin"* ]]
then
BUILD_FOLDER=".build/release"
swift build --disable-sandbox -c release
if [[ `uname -m` == 'arm64' ]]; then
swift build --disable-sandbox --arch arm64 -c release
else
swift build --disable-sandbox -c release
fi
else
BUILD_FOLDER=".build/debug"
swift build --disable-sandbox
Expand Down

0 comments on commit 533d307

Please sign in to comment.