File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Sources/Build/BuildDescription Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -146,8 +146,8 @@ package final class SwiftTargetBuildDescription {
146146 /// Any addition flags to be added. These flags are expected to be computed during build planning.
147147 var additionalFlags : [ String ] = [ ]
148148
149- /// The swift version for this target.
150- var swiftVersion : SwiftLanguageVersion {
149+ /// The swift language version that is computed for this target based on tools version of the manifest .
150+ var toolsSwiftVersion : SwiftLanguageVersion {
151151 self . swiftTarget. toolSwiftVersion
152152 }
153153
@@ -577,7 +577,7 @@ package final class SwiftTargetBuildDescription {
577577
578578 // Fallback to package wide setting if there is no target specific version.
579579 if args. firstIndex ( of: " -swift-version " ) == nil {
580- args += [ " -swift-version " , self . swiftVersion . rawValue]
580+ args += [ " -swift-version " , self . toolsSwiftVersion . rawValue]
581581 }
582582
583583 // Add the output for the `.swiftinterface`, if requested or if library evolution has been enabled some other
You can’t perform that action at this time.
0 commit comments