@@ -2320,39 +2320,6 @@ final class SwiftDriverTests: XCTestCase {
2320
2320
XCTAssertFalse ( cmd. contains ( . flag( " -dylib " ) ) )
2321
2321
XCTAssertFalse ( cmd. contains ( . flag( " -shared " ) ) )
2322
2322
}
2323
-
2324
- do {
2325
- // executable linking linux static stdlib with musl
2326
- var driver = try Driver ( args: commonArgs + [
2327
- " -emit-executable " , " -Osize " , " -static-stdlib " , " -static-executable " , " -target " , " x86_64-unknown-linux-musl "
2328
- ] , env: env)
2329
- let plannedJobs = try driver. planBuild ( )
2330
-
2331
- XCTAssertEqual ( plannedJobs. count, 4 )
2332
-
2333
- let autolinkExtractJob = plannedJobs [ 2 ]
2334
- XCTAssertEqual ( autolinkExtractJob. kind, . autolinkExtract)
2335
-
2336
- let autolinkCmd = autolinkExtractJob. commandLine
2337
- XCTAssertTrue ( commandContainsTemporaryPath ( autolinkCmd, " foo.o " ) )
2338
- XCTAssertTrue ( commandContainsTemporaryPath ( autolinkCmd, " bar.o " ) )
2339
- XCTAssertTrue ( commandContainsTemporaryPath ( autolinkCmd, " Test.autolink " ) )
2340
-
2341
- let linkJob = plannedJobs [ 3 ]
2342
- let cmd = linkJob. commandLine
2343
- XCTAssertTrue ( cmd. contains ( . flag( " -o " ) ) )
2344
- XCTAssertTrue ( commandContainsTemporaryPath ( cmd, " foo.o " ) )
2345
- XCTAssertTrue ( commandContainsTemporaryPath ( cmd, " bar.o " ) )
2346
- XCTAssertTrue ( cmd. contains ( . flag( " --start-group " ) ) )
2347
- XCTAssertTrue ( cmd. contains ( . flag( " --end-group " ) ) )
2348
- XCTAssertTrue ( cmd. contains ( . flag( " -Os " ) ) )
2349
- print ( " Static stdlib with musl link job: \( cmd. joinedUnresolvedArguments) " )
2350
- //XCTAssertTrue(cmd.contains(.flag("-static")))
2351
- XCTAssertEqual ( linkJob. outputs [ 0 ] . file, try toPath ( " Test " ) )
2352
-
2353
- XCTAssertFalse ( cmd. contains ( . flag( " -dylib " ) ) )
2354
- XCTAssertFalse ( cmd. contains ( . flag( " -shared " ) ) )
2355
- }
2356
2323
#endif
2357
2324
2358
2325
do {
0 commit comments