File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -542,8 +542,13 @@ public struct BuildOptions: ParsableArguments {
542
542
public var debugInfoFormat : DebugInfoFormat = . dwarf
543
543
544
544
public var buildSystem : BuildSystemProvider . Kind {
545
- // Force the Xcode build system if we want to build more than one arch.
546
- return self . architectures. count > 1 ? . xcode : self . _buildSystem
545
+ switch self . _buildSystem {
546
+ case . swiftbuild, . xcode:
547
+ return self . _buildSystem
548
+ case . native:
549
+ // Maintain legacy behavior and force use of the Xcode build system if we want to build more than one arch.
550
+ return self . architectures. count > 1 ? . xcode : . native
551
+ }
547
552
}
548
553
549
554
/// Whether to enable test discovery on platforms without Objective-C runtime.
You can’t perform that action at this time.
0 commit comments