Skip to content

Commit

Permalink
[PackageLoading] Support deserialization of manifests that used `swif…
Browse files Browse the repository at this point in the history
…tLanguageVersion`

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.

(cherry picked from commit 5189086)
  • Loading branch information
xedin committed Jul 26, 2024
1 parent 1f749a0 commit 18dd6bb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/PackageLoading/ManifestJSONParser.swift
Original file line number Diff line number Diff line change
Expand Up @@ -535,7 +535,7 @@ extension TargetBuildSettingDescription.Kind {
case "unsafeFlags":
return .unsafeFlags(values)

case "swiftLanguageMode":
case "swiftLanguageVersion", "swiftLanguageMode":
guard let rawVersion = values.first else {
throw InternalError("invalid (empty) build settings value")
}
Expand Down

0 comments on commit 18dd6bb

Please sign in to comment.