Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions Sources/CoreCommands/Options.swift
Original file line number Diff line number Diff line change
Expand Up @@ -526,6 +526,7 @@ public struct BuildOptions: ParsableArguments {
/// Whether to use the integrated Swift driver rather than shelling out
/// to a separate process.
@Flag()
/// This flag is deprecated but cannot indicate so in Swift Argument Parser until https://github.com/apple/swift-argument-parser/issues/656
public var useIntegratedSwiftDriver: Bool = false

/// A flag that indicates this build should check whether targets only import
Expand Down
5 changes: 5 additions & 0 deletions Sources/CoreCommands/SwiftCommandState.swift
Original file line number Diff line number Diff line change
Expand Up @@ -854,6 +854,11 @@ public final class SwiftCommandState {
observabilityScope: ObservabilityScope? = .none,
delegate: BuildSystemDelegate? = nil
) async throws -> BuildSystem {

if self.options.build.useIntegratedSwiftDriver && self.options.build.buildSystem == .native {
self.observabilityScope.emit(warning: "`--use-integrated-swift-driver` option is deprecated as the feature is not fully functional.")
}

guard let buildSystemProvider else {
fatalError("build system provider not initialized")
}
Expand Down