Skip to content

Commit 295eef0

Browse files
committed
SwiftCompilerSources: force the -static flag
These libraries are built statically for static linking. SPM currently does not support libraries, and this will ensure that we properly build the library target for consumption into the compiler.
1 parent 309a147 commit 295eef0

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

SwiftCompilerSources/Package.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ private extension Target {
2929
swiftSettings: [
3030
.interoperabilityMode(.Cxx),
3131
.unsafeFlags([
32+
"-static",
3233
"-Xcc", "-I../include",
3334
"-Xcc", "-I../../llvm-project/llvm/include",
3435
"-Xcc", "-I../../llvm-project/clang/include",

0 commit comments

Comments
 (0)