File tree Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -423,7 +423,8 @@ extension Driver {
423
423
// Pass along -no-verify-emitted-module-interface only if it's effective.
424
424
// Assume verification by default as we want to know only when the user skips
425
425
// the verification.
426
- if !parsedOptions. hasFlag ( positive: . verifyEmittedModuleInterface,
426
+ if isFrontendArgSupported ( . noVerifyEmittedModuleInterface) &&
427
+ !parsedOptions. hasFlag ( positive: . verifyEmittedModuleInterface,
427
428
negative: . noVerifyEmittedModuleInterface,
428
429
default: true ) {
429
430
commandLine. appendFlag ( " -no-verify-emitted-module-interface " )
Original file line number Diff line number Diff line change @@ -5621,7 +5621,9 @@ final class SwiftDriverTests: XCTestCase {
5621
5621
let plannedJobs = try driver. planBuild ( )
5622
5622
XCTAssertEqual ( plannedJobs. count, 2 )
5623
5623
let emitJob = try plannedJobs. findJob ( . emitModule)
5624
- XCTAssertTrue ( emitJob. commandLine. contains ( " -no-verify-emitted-module-interface " ) )
5624
+ if driver. isFrontendArgSupported ( . noVerifyEmittedModuleInterface) {
5625
+ XCTAssertTrue ( emitJob. commandLine. contains ( " -no-verify-emitted-module-interface " ) )
5626
+ }
5625
5627
}
5626
5628
5627
5629
// Disabled by default in merge-module
@@ -5694,7 +5696,9 @@ final class SwiftDriverTests: XCTestCase {
5694
5696
let plannedJobs = try driver. planBuild ( )
5695
5697
XCTAssertEqual ( plannedJobs. count, 1 )
5696
5698
let compileJob = try plannedJobs. findJob ( . compile)
5697
- XCTAssertTrue ( compileJob. commandLine. contains ( " -no-verify-emitted-module-interface " ) )
5699
+ if driver. isFrontendArgSupported ( . noVerifyEmittedModuleInterface) {
5700
+ XCTAssertTrue ( compileJob. commandLine. contains ( " -no-verify-emitted-module-interface " ) )
5701
+ }
5698
5702
}
5699
5703
5700
5704
// Enabled by default when the library-level is api.
You can’t perform that action at this time.
0 commit comments