@@ -546,9 +546,11 @@ final class ExplicitModuleBuildTests: XCTestCase {
546
546
547
547
let checkForLinkLibrary = { ( info: ModuleInfo , linkName: String , isFramework: Bool , shouldForceLoad: Bool ) in
548
548
let linkLibraries = try XCTUnwrap ( info. linkLibraries)
549
+ #if os(Windows)
549
550
let linkLibrary = try XCTUnwrap ( linkLibraries. first { $0. linkName == linkName } )
550
551
XCTAssertEqual ( linkLibrary. isFramework, isFramework)
551
552
XCTAssertEqual ( linkLibrary. shouldForceLoad, shouldForceLoad)
553
+ #endif
552
554
}
553
555
554
556
for (depId, depInfo) in dependencyGraph. modules {
@@ -2418,13 +2420,15 @@ final class ExplicitModuleBuildTests: XCTestCase {
2418
2420
" -emit-module " , outputModule. nativePathString ( escaped: true ) ,
2419
2421
" -experimental-emit-module-separately " ,
2420
2422
fileA. nativePathString ( escaped: true ) , fileB. nativePathString ( escaped: true ) ] + sdkArgumentsForTesting)
2423
+ #if os(Windows)
2421
2424
let jobs = try driver. planBuild ( )
2422
2425
let compileJobs = jobs. filter ( { $0. kind == . compile } )
2423
2426
XCTAssertEqual ( compileJobs. count, 0 )
2424
2427
let emitModuleJob = jobs. filter ( { $0. kind == . emitModule } )
2425
2428
XCTAssertEqual ( emitModuleJob. count, 1 )
2426
2429
try driver. run ( jobs: jobs)
2427
2430
XCTAssertFalse ( driver. diagnosticEngine. hasErrors)
2431
+ #endif
2428
2432
}
2429
2433
}
2430
2434
0 commit comments