From 6682e2771334884b3bda085ed69c94721e337194 Mon Sep 17 00:00:00 2001 From: Jonathan Grynspan Date: Wed, 17 Jul 2024 09:13:44 -0400 Subject: [PATCH] Remove `--enable-swift-testing` _et al._ from `swift build`. The enable/disable testing library options are no longer used by `swift build` and can be removed. --- Sources/Commands/SwiftBuildCommand.swift | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/Sources/Commands/SwiftBuildCommand.swift b/Sources/Commands/SwiftBuildCommand.swift index 253bf90c638..3f8f6299706 100644 --- a/Sources/Commands/SwiftBuildCommand.swift +++ b/Sources/Commands/SwiftBuildCommand.swift @@ -104,21 +104,6 @@ struct BuildCommandOptions: ParsableArguments { /// If should link the Swift stdlib statically. @Flag(name: .customLong("static-swift-stdlib"), inversion: .prefixedNo, help: "Link Swift stdlib statically") public var shouldLinkStaticSwiftStdlib: Bool = false - - /// Which testing libraries to use (and any related options.) - @OptionGroup() - var testLibraryOptions: TestLibraryOptions - - func validate() throws { - // If --build-tests was not specified, it does not make sense to enable - // or disable either testing library. - if !buildTests { - if testLibraryOptions.explicitlyEnableXCTestSupport != nil - || testLibraryOptions.explicitlyEnableSwiftTestingLibrarySupport != nil { - throw StringError("pass --build-tests to build test targets") - } - } - } } /// swift-build command namespace