@@ -163,7 +163,6 @@ private func pcmArgsEncodedRelativeModulePath(for moduleName: String, with pcmAr
163
163
/// Test that for the given JSON module dependency graph, valid jobs are generated
164
164
final class ExplicitModuleBuildTests : XCTestCase {
165
165
func testModuleDependencyBuildCommandGeneration( ) throws {
166
- #if os(macOS)
167
166
do {
168
167
var driver = try Driver ( args: [ " swiftc " , " -explicit-module-build " ,
169
168
" -module-name " , " testModuleDependencyBuildCommandGeneration " ,
@@ -222,7 +221,6 @@ final class ExplicitModuleBuildTests: XCTestCase {
222
221
}
223
222
}
224
223
}
225
- #endif
226
224
}
227
225
228
226
func testModuleDependencyBuildCommandGenerationWithExternalFramework( ) throws {
@@ -312,7 +310,6 @@ final class ExplicitModuleBuildTests: XCTestCase {
312
310
/// Test generation of explicit module build jobs for dependency modules when the driver
313
311
/// is invoked with -explicit-module-build
314
312
func testExplicitModuleBuildJobs( ) throws {
315
- #if os(macOS)
316
313
try withTemporaryDirectory { path in
317
314
let main = path. appending ( component: " testExplicitModuleBuildJobs.swift " )
318
315
try localFileSystem. writeFileContents ( main) {
@@ -465,11 +462,9 @@ final class ExplicitModuleBuildTests: XCTestCase {
465
462
}
466
463
}
467
464
}
468
- #endif
469
465
}
470
466
471
467
func testImmediateModeExplicitModuleBuild( ) throws {
472
- #if os(macOS)
473
468
try withTemporaryDirectory { path in
474
469
let main = path. appending ( component: " testExplicitModuleBuildJobs.swift " )
475
470
try localFileSystem. writeFileContents ( main) {
@@ -598,7 +593,6 @@ final class ExplicitModuleBuildTests: XCTestCase {
598
593
}
599
594
}
600
595
}
601
- #endif
602
596
}
603
597
604
598
@@ -894,9 +888,6 @@ final class ExplicitModuleBuildTests: XCTestCase {
894
888
}
895
889
896
890
func testExplicitModuleBuildEndToEnd( ) throws {
897
- // The macOS-only restriction is temporary while Clang's dependency scanner
898
- // is gaining the ability to perform name-based module lookup.
899
- #if os(macOS)
900
891
try withTemporaryDirectory { path in
901
892
try localFileSystem. changeCurrentWorkingDirectory ( to: path)
902
893
let main = path. appending ( component: " testExplicitModuleBuildEndToEnd.swift " )
@@ -924,7 +915,6 @@ final class ExplicitModuleBuildTests: XCTestCase {
924
915
try driver. run ( jobs: jobs)
925
916
XCTAssertFalse ( driver. diagnosticEngine. hasErrors)
926
917
}
927
- #endif
928
918
}
929
919
930
920
func getStdlibShimsPaths( _ driver: Driver ) throws -> ( AbsolutePath , AbsolutePath ) {
0 commit comments