@@ -318,14 +318,15 @@ final class BuildPlanTests: XCTestCase {
318
318
" /fake/path/to/swiftc " , " -g " , " -L " , " /path/to/build/debug " ,
319
319
" -o " , " /path/to/build/debug/exe " , " -module-name " , " exe " , " -emit-executable " ,
320
320
" @/path/to/build/debug/exe.product/Objects.LinkFileList " ,
321
- " -Xlinker " , " -rpath " , " -Xlinker " , " /fake/path/lib/swift/macosx " ,
321
+ " -runtime-compatibility-version " , " none " ,
322
322
] )
323
323
#else
324
324
XCTAssertEqual ( try result. buildProduct ( for: " exe " ) . linkArguments ( ) , [
325
325
" /fake/path/to/swiftc " , " -g " , " -L " , " /path/to/build/debug " ,
326
326
" -o " , " /path/to/build/debug/exe " , " -module-name " , " exe " , " -emit-executable " ,
327
327
" -Xlinker " , " -rpath=$ORIGIN " ,
328
328
" @/path/to/build/debug/exe.product/Objects.LinkFileList " ,
329
+ " -runtime-compatibility-version " , " none " ,
329
330
] )
330
331
#endif
331
332
@@ -374,14 +375,15 @@ final class BuildPlanTests: XCTestCase {
374
375
" /fake/path/to/swiftc " , " -lc++ " , " -g " , " -L " , " /path/to/build/debug " , " -o " ,
375
376
" /path/to/build/debug/exe " , " -module-name " , " exe " , " -emit-executable " ,
376
377
" @/path/to/build/debug/exe.product/Objects.LinkFileList " ,
377
- " -Xlinker " , " -rpath " , " -Xlinker " , " /fake/path/lib/swift/macosx " ,
378
+ " -runtime-compatibility-version " , " none " ,
378
379
] )
379
380
#else
380
381
XCTAssertEqual ( try result. buildProduct ( for: " exe " ) . linkArguments ( ) , [
381
382
" /fake/path/to/swiftc " , " -lstdc++ " , " -g " , " -L " , " /path/to/build/debug " , " -o " ,
382
383
" /path/to/build/debug/exe " , " -module-name " , " exe " , " -emit-executable " ,
383
384
" -Xlinker " , " -rpath=$ORIGIN " ,
384
385
" @/path/to/build/debug/exe.product/Objects.LinkFileList " ,
386
+ " -runtime-compatibility-version " , " none " ,
385
387
] )
386
388
#endif
387
389
@@ -865,12 +867,12 @@ final class BuildPlanTests: XCTestCase {
865
867
XCTAssertEqual ( lib. moduleMap, AbsolutePath ( " /path/to/build/debug/lib.build/module.modulemap " ) )
866
868
867
869
#if os(macOS)
868
- 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 " ] )
870
+ 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 " ] )
869
871
870
- 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 " , ] )
872
+ 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 " ] )
871
873
#else
872
- 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 " ] )
873
- 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 " ] )
874
+ 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 " ] )
875
+ 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 " ] )
874
876
#endif
875
877
}
876
878
0 commit comments