Skip to content

Commit 5b76d86

Browse files
authored
Deprecate --use-integrated-swift-driver option (#9334)
The Native Build system supports a `--use-integrated-swift-driver` command line argument. The feature is not fully funtional. With the transition to SwiftBuild, mark this option as deprecated. Fixes: #9323 Issue: rdar://163962023
1 parent 10a0bb1 commit 5b76d86

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

Sources/CoreCommands/Options.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -526,6 +526,7 @@ public struct BuildOptions: ParsableArguments {
526526
/// Whether to use the integrated Swift driver rather than shelling out
527527
/// to a separate process.
528528
@Flag()
529+
/// This flag is deprecated but cannot indicate so in Swift Argument Parser until https://github.com/apple/swift-argument-parser/issues/656
529530
public var useIntegratedSwiftDriver: Bool = false
530531

531532
/// A flag that indicates this build should check whether targets only import

Sources/CoreCommands/SwiftCommandState.swift

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -854,6 +854,11 @@ public final class SwiftCommandState {
854854
observabilityScope: ObservabilityScope? = .none,
855855
delegate: BuildSystemDelegate? = nil
856856
) async throws -> BuildSystem {
857+
858+
if self.options.build.useIntegratedSwiftDriver && self.options.build.buildSystem == .native {
859+
self.observabilityScope.emit(warning: "`--use-integrated-swift-driver` option is deprecated as the feature is not fully functional.")
860+
}
861+
857862
guard let buildSystemProvider else {
858863
fatalError("build system provider not initialized")
859864
}

0 commit comments

Comments
 (0)