Skip to content

Commit d8e2743

Browse files
Oliver Chickaciidgh
authored andcommitted
Add extraCPPFlags to BuildParameters
Currently the extra-cpp-flags specified in a destination.json file are not passed through to clang. This is because the extra cpp flags are not being encoded. This patch fixes that.
1 parent f839a1e commit d8e2743

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Sources/Build/BuildPlan.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -248,6 +248,7 @@ public struct BuildParameters: Encodable {
248248
try container.encode(toolchain.getClangCompiler(), forKey: .clangCompiler)
249249

250250
try container.encode(toolchain.extraCCFlags, forKey: .extraCCFlags)
251+
try container.encode(toolchain.extraCPPFlags, forKey: .extraCPPFlags)
251252
try container.encode(toolchain.extraSwiftCFlags, forKey: .extraSwiftCFlags)
252253
try container.encode(toolchain.swiftCompiler, forKey: .swiftCompiler)
253254
}

0 commit comments

Comments
 (0)