Skip to content

Commit 3c9f83d

Browse files
committed
build: add -mergeable-symbols
This change reduces the binary size of `libKernel.a`.
1 parent 80b573d commit 3c9f83d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Package.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ let swiftSettings: [SwiftSetting] = [
88
.unsafeFlags(["-Xfrontend", "-no-allocations"]),
99
.unsafeFlags(["-Xfrontend", "-function-sections"]),
1010
.unsafeFlags(["-Xfrontend", "-disable-stack-protector"]),
11+
.unsafeFlags(["-Xfrontend", "-mergeable-symbols"]),
1112
.unsafeFlags(["-strict-memory-safety"]),
1213
]
1314

0 commit comments

Comments
 (0)