File tree 1 file changed +3
-3
lines changed
Sources/Build/BuildDescription
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 {
146
146
/// Any addition flags to be added. These flags are expected to be computed during build planning.
147
147
var additionalFlags : [ String ] = [ ]
148
148
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 {
151
151
self . swiftTarget. toolSwiftVersion
152
152
}
153
153
@@ -582,7 +582,7 @@ package final class SwiftTargetBuildDescription {
582
582
583
583
// Fallback to package wide setting if there is no target specific version.
584
584
if args. firstIndex ( of: " -swift-version " ) == nil {
585
- args += [ " -swift-version " , self . swiftVersion . rawValue]
585
+ args += [ " -swift-version " , self . toolsSwiftVersion . rawValue]
586
586
}
587
587
588
588
// 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