Skip to content

Commit c67b678

Browse files
committed
Fix the build script to not use thin_lto
1 parent da5392e commit c67b678

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ax/Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ $(FINAL_BINARY_PATH): $(UNIVERSAL_BINARY_PATH)
1616
@echo "Final binary ready at $(FINAL_BINARY_PATH)"
1717

1818
$(UNIVERSAL_BINARY_PATH):
19-
@echo "Building universal binary for $(UNIVERSAL_BINARY_NAME) (arm64 + x86_64) with size optimization (Osize, ThinLTO, dead_strip)..."
20-
@swift build -c release --arch arm64 --arch x86_64 -Xswiftc -Osize -Xswiftc -lto=llvm-thin -Xcc -Wl,-dead_strip
19+
@echo "Building universal binary for $(UNIVERSAL_BINARY_NAME) (arm64 + x86_64) with size optimization (Osize, dead_strip)..."
20+
@swift build -c release --arch arm64 --arch x86_64 -Xswiftc -Osize -Xcc -Wl,-dead_strip
2121
@echo "Stripping symbols from $(UNIVERSAL_BINARY_PATH)..."
2222
@strip $(UNIVERSAL_BINARY_PATH)
2323
@echo "Universal binary built and stripped at $(UNIVERSAL_BINARY_PATH)"

0 commit comments

Comments
 (0)