Skip to content

Commit 5189086

Browse files
committed
[PackageLoading] Support deserialization of manifests that used swiftLanguageVersion
Follow-up to swiftlang#7620 This is important for the manifest cache - make sure that older manifests that used original spelling of the build setting are still deserializable.
1 parent d0854db commit 5189086

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/PackageLoading/ManifestJSONParser.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -540,7 +540,7 @@ extension TargetBuildSettingDescription.Kind {
540540
case "unsafeFlags":
541541
return .unsafeFlags(values)
542542

543-
case "swiftLanguageMode":
543+
case "swiftLanguageVersion", "swiftLanguageMode":
544544
guard let rawVersion = values.first else {
545545
throw InternalError("invalid (empty) build settings value")
546546
}

0 commit comments

Comments
 (0)