@@ -155,6 +155,7 @@ private func pcmArgsEncodedRelativeModulePath(for moduleName: String, with pcmAr
155
155
/// Test that for the given JSON module dependency graph, valid jobs are generated
156
156
final class ExplicitModuleBuildTests : XCTestCase {
157
157
func testModuleDependencyBuildCommandGeneration( ) throws {
158
+ #if os(macOS)
158
159
do {
159
160
var driver = try Driver ( args: [ " swiftc " , " -explicit-module-build " ,
160
161
" -module-name " , " testModuleDependencyBuildCommandGeneration " ,
@@ -208,6 +209,7 @@ final class ExplicitModuleBuildTests: XCTestCase {
208
209
}
209
210
}
210
211
}
212
+ #endif
211
213
}
212
214
213
215
func testModuleDependencyBuildCommandGenerationWithExternalFramework( ) throws {
@@ -297,6 +299,7 @@ final class ExplicitModuleBuildTests: XCTestCase {
297
299
/// Test generation of explicit module build jobs for dependency modules when the driver
298
300
/// is invoked with -explicit-module-build
299
301
func testExplicitModuleBuildJobs( ) throws {
302
+ #if os(macOS)
300
303
try withTemporaryDirectory { path in
301
304
let main = path. appending ( component: " testExplicitModuleBuildJobs.swift " )
302
305
try localFileSystem. writeFileContents ( main) {
@@ -444,9 +447,11 @@ final class ExplicitModuleBuildTests: XCTestCase {
444
447
}
445
448
}
446
449
}
450
+ #endif
447
451
}
448
452
449
453
func testImmediateModeExplicitModuleBuild( ) throws {
454
+ #if os(macOS)
450
455
try withTemporaryDirectory { path in
451
456
let main = path. appending ( component: " testExplicitModuleBuildJobs.swift " )
452
457
try localFileSystem. writeFileContents ( main) {
@@ -570,6 +575,7 @@ final class ExplicitModuleBuildTests: XCTestCase {
570
575
}
571
576
}
572
577
}
578
+ #endif
573
579
}
574
580
575
581
func testExplicitModuleBuildEndToEnd( ) throws {
0 commit comments