Skip to content

Commit 45ecc20

Browse files
xedinbnbarham
authored andcommitted
[PackageLoading] Support deserialization of manifests that used swiftLanguageVersion
Follow-up to #7620 This is important for the manifest cache - make sure that older manifests that used original spelling of the build setting are still deserializable. (cherry picked from commit 5189086)
1 parent 1f749a0 commit 45ecc20

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
@@ -535,7 +535,7 @@ extension TargetBuildSettingDescription.Kind {
535535
case "unsafeFlags":
536536
return .unsafeFlags(values)
537537

538-
case "swiftLanguageMode":
538+
case "swiftLanguageVersion", "swiftLanguageMode":
539539
guard let rawVersion = values.first else {
540540
throw InternalError("invalid (empty) build settings value")
541541
}

0 commit comments

Comments
 (0)