Skip to content

Commit e7a5349

Browse files
committed
Default to bootstrapping using Swift Build
1 parent aa882cf commit e7a5349

File tree

1 file changed

+2
-13
lines changed

1 file changed

+2
-13
lines changed

Sources/swift-bootstrap/main.swift

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -132,19 +132,8 @@ struct SwiftBootstrapBuildTool: AsyncParsableCommand {
132132
public var shouldDisableLocalRpath: Bool = false
133133

134134
/// The build system to use.
135-
@Option(name: .customLong("build-system"))
136-
var _buildSystem: BuildSystemProvider.Kind = .native
137-
138-
private var buildSystem: BuildSystemProvider.Kind {
139-
#if os(macOS)
140-
// Force the Xcode build system if we want to build more than one arch.
141-
return self.architectures.count > 1 ? .xcode : self._buildSystem
142-
#else
143-
// Use whatever the build system provided by the command-line, or default fallback
144-
// on other platforms.
145-
return self._buildSystem
146-
#endif
147-
}
135+
@Option
136+
var buildSystem: BuildSystemProvider.Kind = .swiftbuild
148137

149138
public var buildFlags: BuildFlags {
150139
BuildFlags(

0 commit comments

Comments
 (0)