@@ -599,6 +599,10 @@ final class CachingBuildTests: XCTestCase {
599
599
try localFileSystem. writeFileContents ( main) {
600
600
$0. send ( " import C;import E;import G; " )
601
601
}
602
+ let vfsoverlay = path. appending ( component: " overlay.yaml " )
603
+ try localFileSystem. writeFileContents ( vfsoverlay) {
604
+ $0. send ( " { \" case-sensitive \" : \" false \" , \" roots \" :[], \" version \" :0} " )
605
+ }
602
606
603
607
let cHeadersPath : AbsolutePath =
604
608
try testInputsPath. appending ( component: " ExplicitModuleBuilds " )
@@ -615,6 +619,7 @@ final class CachingBuildTests: XCTestCase {
615
619
" -explicit-module-build " ,
616
620
" -cache-compile-job " , " -cas-path " , casPath. nativePathString ( escaped: true ) ,
617
621
" -working-directory " , path. nativePathString ( escaped: true ) ,
622
+ " -Xcc " , " -ivfsoverlay " , " -Xcc " , vfsoverlay. nativePathString ( escaped: true ) ,
618
623
" -disable-clang-target " ,
619
624
main. nativePathString ( escaped: true ) ] + sdkArgumentsForTesting,
620
625
env: ProcessEnv . vars)
@@ -642,6 +647,10 @@ final class CachingBuildTests: XCTestCase {
642
647
XCTAssertFalse ( scannerCommand. contains ( " -pch-output-dir " ) )
643
648
XCTAssertFalse ( scannerCommand. contains ( " Foo.o " ) )
644
649
650
+ // Xcc commands are used for scanner command.
651
+ XCTAssertTrue ( scannerCommand. contains ( " -Xcc " ) )
652
+ XCTAssertTrue ( scannerCommand. contains ( " -ivfsoverlay " ) )
653
+
645
654
// Here purely to dump diagnostic output in a reasonable fashion when things go wrong.
646
655
let lock = NSLock ( )
647
656
0 commit comments