From 8f43e89ac74b301dd70fad160e620a4a801f7584 Mon Sep 17 00:00:00 2001 From: Saagar Jha Date: Mon, 17 Apr 2023 05:13:44 -0700 Subject: [PATCH] Enable whole module optimization for binaries --- release.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/release.sh b/release.sh index 6a745d3..cd13884 100755 --- a/release.sh +++ b/release.sh @@ -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