File tree Expand file tree Collapse file tree 2 files changed +8
-0
lines changed
Sources/SwiftDriver/ExplicitModuleBuilds Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -129,6 +129,10 @@ public extension Driver {
129129 try commandLine. appendLast ( . clangScannerModuleCachePath, from: & parsedOptions)
130130 }
131131
132+ if isFrontendArgSupported ( . scannerModuleValidation) {
133+ commandLine. appendFlag ( . scannerModuleValidation)
134+ }
135+
132136 if isFrontendArgSupported ( . scannerPrefixMap) {
133137 // construct `-scanner-prefix-mapper` for scanner.
134138 for (key, value) in prefixMapping {
Original file line number Diff line number Diff line change @@ -1710,6 +1710,10 @@ final class ExplicitModuleBuildTests: XCTestCase {
17101710 scannerCommand. removeFirst ( )
17111711 }
17121712
1713+ if driver. isFrontendArgSupported ( . scannerModuleValidation) {
1714+ XCTAssertTrue ( scannerCommand. contains ( " -scanner-module-validation " ) )
1715+ }
1716+
17131717 // Ensure we do not propagate the usual PCH-handling arguments to the scanner invocation
17141718 XCTAssertFalse ( scannerCommand. contains ( " -pch-output-dir " ) )
17151719 XCTAssertFalse ( scannerCommand. contains ( " Foo.o " ) )
You can’t perform that action at this time.
0 commit comments