Skip to content

Commit 704ad63

Browse files
committed
chore: add compiler optimizations
1 parent 9a4f655 commit 704ad63

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Makefile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
BIN_NAME = lazykeys
22
SRC_FILES = $(wildcard src/*.swift)
33
LIBS = -framework Cocoa -framework Carbon -framework Foundation
4-
54
VERSION ?= dev-$(shell date -Idate)
6-
75
BIN_DIR = bin
86
OUTPUT = $(BIN_DIR)/$(BIN_NAME)
97

@@ -23,6 +21,9 @@ build: version.h $(OUTPUT)
2321
$(OUTPUT): $(SRC_FILES) | $(BIN_DIR)
2422
xcrun swiftc -I. -import-objc-header version.h \
2523
-O \
24+
-whole-module-optimization \
25+
-Xcc -flto \
26+
-Xlinker -dead_strip \
2627
$(LIBS) \
2728
$(SRC_FILES) \
2829
-o $(OUTPUT)

0 commit comments

Comments
 (0)