From 295eef0cd90177f4d822dc53574e1caa48d42e7c Mon Sep 17 00:00:00 2001 From: Saleem Abdulrasool Date: Thu, 24 Aug 2023 11:16:35 -0700 Subject: [PATCH] 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. --- SwiftCompilerSources/Package.swift | 1 + 1 file changed, 1 insertion(+) diff --git a/SwiftCompilerSources/Package.swift b/SwiftCompilerSources/Package.swift index 166c4aefb5a..3b1a3817cb6 100644 --- a/SwiftCompilerSources/Package.swift +++ b/SwiftCompilerSources/Package.swift @@ -29,6 +29,7 @@ private extension Target { swiftSettings: [ .interoperabilityMode(.Cxx), .unsafeFlags([ + "-static", "-Xcc", "-I../include", "-Xcc", "-I../../llvm-project/llvm/include", "-Xcc", "-I../../llvm-project/clang/include",