@@ -586,8 +586,6 @@ final class ExplicitModuleBuildTests: XCTestCase {
586
586
}
587
587
588
588
func testExplicitModuleBuildEndToEnd( ) throws {
589
- throw XCTSkip ( " rdar://79594631 " )
590
- /*
591
589
// The macOS-only restriction is temporary while Clang's dependency scanner
592
590
// is gaining the ability to perform name-based module lookup.
593
591
#if os(macOS)
@@ -605,19 +603,23 @@ final class ExplicitModuleBuildTests: XCTestCase {
605
603
let testInputsPath = packageRootPath + " /TestInputs "
606
604
let cHeadersPath : String = testInputsPath + " /ExplicitModuleBuilds/CHeaders "
607
605
let swiftModuleInterfacesPath : String = testInputsPath + " /ExplicitModuleBuilds/Swift "
606
+ let sdkArgumentsForTesting = ( try ? Driver . sdkArgumentsForTesting ( ) ) ?? [ ]
608
607
var driver = try Driver ( args: [ " swiftc " ,
609
608
" -I " , cHeadersPath,
610
609
" -I " , swiftModuleInterfacesPath,
611
610
" -experimental-explicit-module-build " ,
612
611
" -working-directory " , path. pathString,
613
- main.pathString],
612
+ // TODO: clang targets need to be taught
613
+ // how to work with explicit modules
614
+ // properly.
615
+ " -disable-clang-target " ,
616
+ main. pathString] + sdkArgumentsForTesting,
614
617
env: ProcessEnv . vars)
615
618
let jobs = try driver. planBuild ( )
616
619
try driver. run ( jobs: jobs)
617
620
XCTAssertFalse ( driver. diagnosticEngine. hasErrors)
618
621
}
619
622
#endif
620
- */
621
623
}
622
624
623
625
func getStdlibShimsPaths( _ driver: Driver ) throws -> ( AbsolutePath , AbsolutePath ) {
0 commit comments