We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
extraCPPFlags
1 parent d1d2d17 commit a47085cCopy full SHA for a47085c
Sources/Build/BuildPlan.swift
@@ -2080,7 +2080,8 @@ public class BuildPlan {
2080
// Note: This will come from build settings in future.
2081
for target in dependencies.staticTargets {
2082
if case let target as ClangTarget = target.underlyingTarget, target.isCXX {
2083
- buildProduct.additionalFlags += self.buildParameters.toolchain.extraCPPFlags
+ // Since we are using `swiftc` as the linker driver, we need to prefix these.
2084
+ buildProduct.additionalFlags += self.buildParameters.toolchain.extraCPPFlags.flatMap({ ["-Xcc", $0] })
2085
break
2086
}
2087
0 commit comments