Skip to content

Commit 410950c

Browse files
committed
Use --build-system experimental-async as a feature flag
1 parent df0c23f commit 410950c

File tree

3 files changed

+2
-4
lines changed

3 files changed

+2
-4
lines changed

Sources/Commands/SwiftBuildCommand.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ public struct SwiftBuildCommand: AsyncSwiftCommand {
140140
throw ExitCode.failure
141141
}
142142

143-
if self.globalOptions.build.useAsyncBuildSystem {
143+
if self.globalOptions.build.buildSystem == .experimentalAsync {
144144
let buildSystem = try swiftCommandState.createAsyncBuildSystem(
145145
explicitProduct: options.product,
146146
shouldLinkStaticSwiftStdlib: options.shouldLinkStaticSwiftStdlib,

Sources/CoreCommands/Options.swift

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -446,9 +446,6 @@ public struct BuildOptions: ParsableArguments {
446446
@Option(name: .customLong("build-system"))
447447
var _buildSystem: BuildSystemProvider.Kind = .native
448448

449-
@Flag(name: .customLong("experimental-async-build-system"), help: .hidden)
450-
public var useAsyncBuildSystem: Bool = false
451-
452449
/// The Debug Information Format to use.
453450
@Option(name: .customLong("debug-info-format", withSingleDash: true))
454451
public var debugInfoFormat: DebugInfoFormat = .dwarf

Sources/SPMBuildCore/BuildSystem/BuildSystem.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,7 @@ public struct BuildSystemProvider {
132132
public enum Kind: String, CaseIterable {
133133
case native
134134
case xcode
135+
case experimentalAsync = "experimental-async"
135136
}
136137

137138
public let providers: [Kind: any BuildSystemFactory]

0 commit comments

Comments
 (0)