@@ -2342,39 +2342,6 @@ final class SwiftDriverTests: XCTestCase {
2342
2342
XCTAssertFalse ( cmd. contains ( . flag( " -dylib " ) ) )
2343
2343
XCTAssertFalse ( cmd. contains ( . flag( " -shared " ) ) )
2344
2344
}
2345
-
2346
- do {
2347
- // executable linking linux static stdlib with musl
2348
- var driver = try Driver ( args: commonArgs + [
2349
- " -emit-executable " , " -Osize " , " -static-stdlib " , " -static-executable " , " -target " , " x86_64-unknown-linux-musl "
2350
- ] , env: env)
2351
- let plannedJobs = try driver. planBuild ( )
2352
-
2353
- XCTAssertEqual ( plannedJobs. count, 4 )
2354
-
2355
- let autolinkExtractJob = plannedJobs [ 2 ]
2356
- XCTAssertEqual ( autolinkExtractJob. kind, . autolinkExtract)
2357
-
2358
- let autolinkCmd = autolinkExtractJob. commandLine
2359
- XCTAssertTrue ( commandContainsTemporaryPath ( autolinkCmd, " foo.o " ) )
2360
- XCTAssertTrue ( commandContainsTemporaryPath ( autolinkCmd, " bar.o " ) )
2361
- XCTAssertTrue ( commandContainsTemporaryPath ( autolinkCmd, " Test.autolink " ) )
2362
-
2363
- let linkJob = plannedJobs [ 3 ]
2364
- let cmd = linkJob. commandLine
2365
- XCTAssertTrue ( cmd. contains ( . flag( " -o " ) ) )
2366
- XCTAssertTrue ( commandContainsTemporaryPath ( cmd, " foo.o " ) )
2367
- XCTAssertTrue ( commandContainsTemporaryPath ( cmd, " bar.o " ) )
2368
- XCTAssertTrue ( cmd. contains ( . flag( " --start-group " ) ) )
2369
- XCTAssertTrue ( cmd. contains ( . flag( " --end-group " ) ) )
2370
- XCTAssertTrue ( cmd. contains ( . flag( " -Os " ) ) )
2371
- print ( " Static stdlib with musl link job: \( cmd. joinedUnresolvedArguments) " )
2372
- //XCTAssertTrue(cmd.contains(.flag("-static")))
2373
- XCTAssertEqual ( linkJob. outputs [ 0 ] . file, try toPath ( " Test " ) )
2374
-
2375
- XCTAssertFalse ( cmd. contains ( . flag( " -dylib " ) ) )
2376
- XCTAssertFalse ( cmd. contains ( . flag( " -shared " ) ) )
2377
- }
2378
2345
#endif
2379
2346
2380
2347
do {
0 commit comments