Skip to content

Commit

Permalink
Enable whole module optimization for binaries
Browse files Browse the repository at this point in the history
  • Loading branch information
saagarjha committed Apr 17, 2023
1 parent 02f1e0d commit 8f43e89
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

set -x

swiftc -O -parse-as-library -target x86_64-apple-macosx12.0 unxip.swift -o unxip-x86_64
swiftc -O -parse-as-library -target arm64-apple-macosx12.0 unxip.swift -o unxip-arm64
swiftc -O -whole-module-optimization -parse-as-library -target x86_64-apple-macosx12.0 unxip.swift -o unxip-x86_64
swiftc -O -whole-module-optimization -parse-as-library -target arm64-apple-macosx12.0 unxip.swift -o unxip-arm64
lipo -create unxip-arm64 unxip-x86_64 -output unxip
codesign -s "Developer ID" --options=runtime --timestamp unxip
zip unxip.zip unxip
Expand Down

0 comments on commit 8f43e89

Please sign in to comment.