Skip to content

Commit 7d0230b

Browse files
authored
Remove --enable-swift-testing _et al._ from swift build. (#7784)
The enable/disable testing library options are no longer used by `swift build` and can be removed.
1 parent 524bd77 commit 7d0230b

File tree

1 file changed

+0
-15
lines changed

1 file changed

+0
-15
lines changed

Sources/Commands/SwiftBuildCommand.swift

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -104,21 +104,6 @@ struct BuildCommandOptions: ParsableArguments {
104104
/// If should link the Swift stdlib statically.
105105
@Flag(name: .customLong("static-swift-stdlib"), inversion: .prefixedNo, help: "Link Swift stdlib statically")
106106
public var shouldLinkStaticSwiftStdlib: Bool = false
107-
108-
/// Which testing libraries to use (and any related options.)
109-
@OptionGroup()
110-
var testLibraryOptions: TestLibraryOptions
111-
112-
func validate() throws {
113-
// If --build-tests was not specified, it does not make sense to enable
114-
// or disable either testing library.
115-
if !buildTests {
116-
if testLibraryOptions.explicitlyEnableXCTestSupport != nil
117-
|| testLibraryOptions.explicitlyEnableSwiftTestingLibrarySupport != nil {
118-
throw StringError("pass --build-tests to build test targets")
119-
}
120-
}
121-
}
122107
}
123108

124109
/// swift-build command namespace

0 commit comments

Comments
 (0)