Skip to content

Commit 2f781b4

Browse files
authored
Revert JSON format change and fix bug introduced by #3696 (#3793)
1 parent 0a0bee8 commit 2f781b4

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

Sources/Workspace/Destination.swift

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ extension Destination {
225225
binDir: destination.binDir,
226226
extraCCFlags: destination.extraCCFlags,
227227
extraSwiftCFlags: destination.extraSwiftCFlags,
228-
extraCPPFlags: destination.extraCCFlags
228+
extraCPPFlags: destination.extraCPPFlags
229229
)
230230
}
231231
}
@@ -241,4 +241,13 @@ fileprivate struct DestinationInfo: Codable {
241241
let extraCCFlags: [String]
242242
let extraSwiftCFlags: [String]
243243
let extraCPPFlags: [String]
244+
245+
enum CodingKeys: String, CodingKey {
246+
case target
247+
case sdk
248+
case binDir = "toolchain-bin-dir"
249+
case extraCCFlags = "extra-cc-flags"
250+
case extraSwiftCFlags = "extra-swiftc-flags"
251+
case extraCPPFlags = "extra-cpp-flags"
252+
}
244253
}

0 commit comments

Comments
 (0)