We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d849222 commit 0cab286Copy full SHA for 0cab286
Sources/PackageModel/Target.swift
@@ -416,8 +416,8 @@ public class ClangTarget: Target {
416
let container = try decoder.container(keyedBy: CodingKeys.self)
417
self.includeDir = try container.decode(AbsolutePath.self, forKey: .includeDir)
418
self.isCXX = try container.decode(Bool.self, forKey: .isCXX)
419
- self.cLanguageStandard = try container.decode(String.self, forKey: .cLanguageStandard)
420
- self.cxxLanguageStandard = try container.decode(String.self, forKey: .cxxLanguageStandard)
+ self.cLanguageStandard = try container.decodeIfPresent(String.self, forKey: .cLanguageStandard)
+ self.cxxLanguageStandard = try container.decodeIfPresent(String.self, forKey: .cxxLanguageStandard)
421
try super.init(from: decoder)
422
}
423
0 commit comments