File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -248,7 +248,7 @@ public final class SwiftTarget: Target {
248
248
}
249
249
250
250
/// Create an executable Swift target from linux main test manifest file.
251
- public convenience init ( linuxMain: AbsolutePath , name: String , dependencies: [ Target . Dependency ] ) {
251
+ public init ( linuxMain: AbsolutePath , name: String , dependencies: [ Target . Dependency ] ) {
252
252
// Look for the first swift test target and use the same swift version
253
253
// for linux main target. This will need to change if we move to a model
254
254
// where we allow per target swift language version build settings.
@@ -261,19 +261,18 @@ public final class SwiftTarget: Target {
261
261
// We need to select the latest Swift language version that can
262
262
// satisfy the current tools version but there is not a good way to
263
263
// do that currently.
264
+ self . swiftVersion = swiftTestTarget? . swiftVersion ?? SwiftLanguageVersion ( string: String ( ToolsVersion . currentToolsVersion. major) ) ?? . v4
264
265
let sources = Sources ( paths: [ linuxMain] , root: linuxMain. parentDirectory)
265
266
266
267
let platforms : [ SupportedPlatform ] = swiftTestTarget? . platforms ?? [ ]
267
268
268
- let swiftVersion = swiftTestTarget? . swiftVersion ?? SwiftLanguageVersion ( string: String ( ToolsVersion . currentToolsVersion. major) ) ?? . v4
269
-
270
- self . init (
269
+ super. init (
271
270
name: name,
272
271
defaultLocalization: nil ,
273
272
platforms: platforms,
273
+ type: . executable,
274
274
sources: sources,
275
275
dependencies: dependencies,
276
- swiftVersion: swiftVersion,
277
276
buildSettings: . init( )
278
277
)
279
278
}
You can’t perform that action at this time.
0 commit comments