File tree Expand file tree Collapse file tree 2 files changed +5
-0
lines changed Expand file tree Collapse file tree 2 files changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -184,6 +184,9 @@ extension Driver {
184
184
185
185
private mutating func addVariantModuleJobs( addJobBeforeCompiles: ( Job ) -> Void ,
186
186
addJobAfterCompiles: ( Job ) -> Void ) throws {
187
+ guard parsedOptions. contains ( . experimentalEmitVariantModule) else {
188
+ return
189
+ }
187
190
guard variantModuleOutputInfo != nil else {
188
191
return
189
192
}
Original file line number Diff line number Diff line change @@ -2796,6 +2796,7 @@ final class ExplicitModuleBuildTests: XCTestCase {
2796
2796
"""
2797
2797
)
2798
2798
var driver = try Driver ( args: [ " swiftc " ,
2799
+ " -experimental-emit-variant-module " ,
2799
2800
" -target " , " x86_64-apple-macosx10.14 " ,
2800
2801
" -target-variant " , " x86_64-apple-ios13.1-macabi " ,
2801
2802
" -clang-target " , " x86_64-apple-macosx12.14 " ,
@@ -2900,6 +2901,7 @@ final class ExplicitModuleBuildTests: XCTestCase {
2900
2901
$0. send ( " struct Profiler { void* ptr; }; " )
2901
2902
}
2902
2903
var driver = try Driver ( args: [ " swiftc " ,
2904
+ " -experimental-emit-variant-module " ,
2903
2905
" -target " , " x86_64-apple-macosx10.14 " ,
2904
2906
" -target-variant " , " x86_64-apple-ios13.1-macabi " ,
2905
2907
" -clang-target " , " x86_64-apple-macosx12.14 " ,
You can’t perform that action at this time.
0 commit comments