@@ -163,6 +163,7 @@ 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)
166
167
do {
167
168
var driver = try Driver ( args: [ " swiftc " , " -explicit-module-build " ,
168
169
" -module-name " , " testModuleDependencyBuildCommandGeneration " ,
@@ -216,6 +217,7 @@ final class ExplicitModuleBuildTests: XCTestCase {
216
217
}
217
218
}
218
219
}
220
+ #endif
219
221
}
220
222
221
223
func testModuleDependencyBuildCommandGenerationWithExternalFramework( ) throws {
@@ -305,6 +307,7 @@ final class ExplicitModuleBuildTests: XCTestCase {
305
307
/// Test generation of explicit module build jobs for dependency modules when the driver
306
308
/// is invoked with -explicit-module-build
307
309
func testExplicitModuleBuildJobs( ) throws {
310
+ #if os(macOS)
308
311
try withTemporaryDirectory { path in
309
312
let main = path. appending ( component: " testExplicitModuleBuildJobs.swift " )
310
313
try localFileSystem. writeFileContents ( main) {
@@ -455,9 +458,11 @@ final class ExplicitModuleBuildTests: XCTestCase {
455
458
}
456
459
}
457
460
}
461
+ #endif
458
462
}
459
463
460
464
func testImmediateModeExplicitModuleBuild( ) throws {
465
+ #if os(macOS)
461
466
try withTemporaryDirectory { path in
462
467
let main = path. appending ( component: " testExplicitModuleBuildJobs.swift " )
463
468
try localFileSystem. writeFileContents ( main) {
@@ -584,6 +589,7 @@ final class ExplicitModuleBuildTests: XCTestCase {
584
589
}
585
590
}
586
591
}
592
+ #endif
587
593
}
588
594
589
595
func testExplicitModuleBuildEndToEnd( ) throws {
0 commit comments