@@ -310,14 +310,15 @@ final class BuildPlanTests: XCTestCase {
310
310
" /fake/path/to/swiftc " , " -g " , " -L " , " /path/to/build/debug " ,
311
311
" -o " , " /path/to/build/debug/exe " , " -module-name " , " exe " , " -emit-executable " ,
312
312
" @/path/to/build/debug/exe.product/Objects.LinkFileList " ,
313
- " -Xlinker " , " -rpath " , " -Xlinker " , " /fake/path/lib/swift/macosx " ,
313
+ " -runtime-compatibility-version " , " none " ,
314
314
] )
315
315
#else
316
316
XCTAssertEqual ( try result. buildProduct ( for: " exe " ) . linkArguments ( ) , [
317
317
" /fake/path/to/swiftc " , " -g " , " -L " , " /path/to/build/debug " ,
318
318
" -o " , " /path/to/build/debug/exe " , " -module-name " , " exe " , " -emit-executable " ,
319
319
" -Xlinker " , " -rpath=$ORIGIN " ,
320
320
" @/path/to/build/debug/exe.product/Objects.LinkFileList " ,
321
+ " -runtime-compatibility-version " , " none " ,
321
322
] )
322
323
#endif
323
324
@@ -366,14 +367,15 @@ final class BuildPlanTests: XCTestCase {
366
367
" /fake/path/to/swiftc " , " -lc++ " , " -g " , " -L " , " /path/to/build/debug " , " -o " ,
367
368
" /path/to/build/debug/exe " , " -module-name " , " exe " , " -emit-executable " ,
368
369
" @/path/to/build/debug/exe.product/Objects.LinkFileList " ,
369
- " -Xlinker " , " -rpath " , " -Xlinker " , " /fake/path/lib/swift/macosx " ,
370
+ " -runtime-compatibility-version " , " none " ,
370
371
] )
371
372
#else
372
373
XCTAssertEqual ( try result. buildProduct ( for: " exe " ) . linkArguments ( ) , [
373
374
" /fake/path/to/swiftc " , " -lstdc++ " , " -g " , " -L " , " /path/to/build/debug " , " -o " ,
374
375
" /path/to/build/debug/exe " , " -module-name " , " exe " , " -emit-executable " ,
375
376
" -Xlinker " , " -rpath=$ORIGIN " ,
376
377
" @/path/to/build/debug/exe.product/Objects.LinkFileList " ,
378
+ " -runtime-compatibility-version " , " none " ,
377
379
] )
378
380
#endif
379
381
@@ -857,12 +859,12 @@ final class BuildPlanTests: XCTestCase {
857
859
XCTAssertEqual ( lib. moduleMap, AbsolutePath ( " /path/to/build/debug/lib.build/module.modulemap " ) )
858
860
859
861
#if os(macOS)
860
- XCTAssertEqual ( try result. buildProduct ( for: " lib " ) . linkArguments ( ) , [ " /fake/path/to/swiftc " , " -lc++ " , " -g " , " -L " , " /path/to/build/debug " , " -o " , " /path/to/build/debug/liblib.dylib " , " -module-name " , " lib " , " -emit-library " , " @/path/to/build/debug/lib.product/Objects.LinkFileList " ] )
862
+ XCTAssertEqual ( try result. buildProduct ( for: " lib " ) . linkArguments ( ) , [ " /fake/path/to/swiftc " , " -lc++ " , " -g " , " -L " , " /path/to/build/debug " , " -o " , " /path/to/build/debug/liblib.dylib " , " -module-name " , " lib " , " -emit-library " , " @/path/to/build/debug/lib.product/Objects.LinkFileList " , " -runtime-compatibility-version " , " none " ] )
861
863
862
- XCTAssertEqual ( try result. buildProduct ( for: " exe " ) . linkArguments ( ) , [ " /fake/path/to/swiftc " , " -g " , " -L " , " /path/to/build/debug " , " -o " , " /path/to/build/debug/exe " , " -module-name " , " exe " , " -emit-executable " , " @/path/to/build/debug/exe.product/Objects.LinkFileList " , " -Xlinker " , " -rpath " , " -Xlinker " , " /fake/path/lib/swift/macosx " , ] )
864
+ XCTAssertEqual ( try result. buildProduct ( for: " exe " ) . linkArguments ( ) , [ " /fake/path/to/swiftc " , " -g " , " -L " , " /path/to/build/debug " , " -o " , " /path/to/build/debug/exe " , " -module-name " , " exe " , " -emit-executable " , " @/path/to/build/debug/exe.product/Objects.LinkFileList " , " -runtime-compatibility-version " , " none " ] )
863
865
#else
864
- XCTAssertEqual ( try result. buildProduct ( for: " lib " ) . linkArguments ( ) , [ " /fake/path/to/swiftc " , " -lstdc++ " , " -g " , " -L " , " /path/to/build/debug " , " -o " , " /path/to/build/debug/liblib.so " , " -module-name " , " lib " , " -emit-library " , " -Xlinker " , " -rpath=$ORIGIN " , " @/path/to/build/debug/lib.product/Objects.LinkFileList " ] )
865
- XCTAssertEqual ( try result. buildProduct ( for: " exe " ) . linkArguments ( ) , [ " /fake/path/to/swiftc " , " -g " , " -L " , " /path/to/build/debug " , " -o " , " /path/to/build/debug/exe " , " -module-name " , " exe " , " -emit-executable " , " -Xlinker " , " -rpath=$ORIGIN " , " @/path/to/build/debug/exe.product/Objects.LinkFileList " ] )
866
+ XCTAssertEqual ( try result. buildProduct ( for: " lib " ) . linkArguments ( ) , [ " /fake/path/to/swiftc " , " -lstdc++ " , " -g " , " -L " , " /path/to/build/debug " , " -o " , " /path/to/build/debug/liblib.so " , " -module-name " , " lib " , " -emit-library " , " -Xlinker " , " -rpath=$ORIGIN " , " @/path/to/build/debug/lib.product/Objects.LinkFileList " , " -runtime-compatibility-version " , " none " ] )
867
+ XCTAssertEqual ( try result. buildProduct ( for: " exe " ) . linkArguments ( ) , [ " /fake/path/to/swiftc " , " -g " , " -L " , " /path/to/build/debug " , " -o " , " /path/to/build/debug/exe " , " -module-name " , " exe " , " -emit-executable " , " -Xlinker " , " -rpath=$ORIGIN " , " @/path/to/build/debug/exe.product/Objects.LinkFileList " , " -runtime-compatibility-version " , " none " ] )
866
868
#endif
867
869
}
868
870
0 commit comments