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 {
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
@@ -577,7 +577,7 @@ package final class SwiftTargetBuildDescription {
577
577
578
578
// Fallback to package wide setting if there is no target specific version.
579
579
if args. firstIndex ( of: " -swift-version " ) == nil {
580
- args += [ " -swift-version " , self . swiftVersion . rawValue]
580
+ args += [ " -swift-version " , self . toolsSwiftVersion . rawValue]
581
581
}
582
582
583
583
// 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