@@ -123,7 +123,7 @@ final class BuildPlanTests: XCTestCase {
123
123
" -emit-executable " ,
124
124
" -Xlinker " , " -rpath=$ORIGIN " ,
125
125
" @/path/to/build/debug/exe.product/Objects.LinkFileList " ,
126
- " -target " , " x86_64-unknown-linux " ,
126
+ " -target " , defaultTargetTriple ,
127
127
]
128
128
#endif
129
129
@@ -236,7 +236,7 @@ final class BuildPlanTests: XCTestCase {
236
236
" -o " , " /path/to/build/release/exe " , " -module-name " , " exe " , " -emit-executable " ,
237
237
" -Xlinker " , " -rpath=$ORIGIN " ,
238
238
" @/path/to/build/release/exe.product/Objects.LinkFileList " ,
239
- " -target " , " x86_64-unknown-linux " ,
239
+ " -target " , defaultTargetTriple ,
240
240
] )
241
241
#endif
242
242
}
@@ -332,7 +332,7 @@ final class BuildPlanTests: XCTestCase {
332
332
" -Xlinker " , " -rpath=$ORIGIN " ,
333
333
" @/path/to/build/debug/exe.product/Objects.LinkFileList " ,
334
334
" -runtime-compatibility-version " , " none " ,
335
- " -target " , " x86_64-unknown-linux " ,
335
+ " -target " , defaultTargetTriple ,
336
336
] )
337
337
#endif
338
338
@@ -391,7 +391,7 @@ final class BuildPlanTests: XCTestCase {
391
391
" -Xlinker " , " -rpath=$ORIGIN " ,
392
392
" @/path/to/build/debug/exe.product/Objects.LinkFileList " ,
393
393
" -runtime-compatibility-version " , " none " ,
394
- " -target " , " x86_64-unknown-linux " ,
394
+ " -target " , defaultTargetTriple ,
395
395
] )
396
396
#endif
397
397
@@ -464,7 +464,7 @@ final class BuildPlanTests: XCTestCase {
464
464
" -o " , " /path/to/build/debug/exe " , " -module-name " , " exe " , " -emit-executable " ,
465
465
" -Xlinker " , " -rpath=$ORIGIN " ,
466
466
" @/path/to/build/debug/exe.product/Objects.LinkFileList " ,
467
- " -target " , " x86_64-unknown-linux " ,
467
+ " -target " , defaultTargetTriple ,
468
468
] )
469
469
#endif
470
470
}
@@ -607,7 +607,7 @@ final class BuildPlanTests: XCTestCase {
607
607
" /path/to/build/debug/PkgPackageTests.xctest " , " -module-name " , " PkgPackageTests " , " -emit-executable " ,
608
608
" -Xlinker " , " -rpath=$ORIGIN " ,
609
609
" @/path/to/build/debug/PkgPackageTests.product/Objects.LinkFileList " ,
610
- " -target " , " x86_64-unknown-linux " ,
610
+ " -target " , defaultTargetTriple ,
611
611
] )
612
612
#endif
613
613
}
@@ -659,7 +659,7 @@ final class BuildPlanTests: XCTestCase {
659
659
" -o " , " /path/to/build/debug/exe " , " -module-name " , " exe " , " -emit-executable " ,
660
660
" -Xlinker " , " -rpath=$ORIGIN " ,
661
661
" @/path/to/build/debug/exe.product/Objects.LinkFileList " ,
662
- " -target " , " x86_64-unknown-linux " ,
662
+ " -target " , defaultTargetTriple ,
663
663
] )
664
664
#endif
665
665
}
@@ -760,7 +760,7 @@ final class BuildPlanTests: XCTestCase {
760
760
" -o " , " /path/to/build/debug/Foo " , " -module-name " , " Foo " , " -lBar-Baz " , " -emit-executable " ,
761
761
" -Xlinker " , " -rpath=$ORIGIN " ,
762
762
" @/path/to/build/debug/Foo.product/Objects.LinkFileList " ,
763
- " -target " , " x86_64-unknown-linux " ,
763
+ " -target " , defaultTargetTriple ,
764
764
] )
765
765
766
766
XCTAssertEqual ( barLinkArgs, [
@@ -769,7 +769,7 @@ final class BuildPlanTests: XCTestCase {
769
769
" -module-name " , " Bar_Baz " , " -emit-library " ,
770
770
" -Xlinker " , " -rpath=$ORIGIN " ,
771
771
" @/path/to/build/debug/Bar-Baz.product/Objects.LinkFileList " ,
772
- " -target " , " x86_64-unknown-linux " ,
772
+ " -target " , defaultTargetTriple ,
773
773
] )
774
774
#endif
775
775
@@ -827,7 +827,7 @@ final class BuildPlanTests: XCTestCase {
827
827
" -o " , " /path/to/build/debug/liblib.so " , " -module-name " , " lib " ,
828
828
" -emit-library " , " -Xlinker " , " -rpath=$ORIGIN " ,
829
829
" @/path/to/build/debug/lib.product/Objects.LinkFileList " ,
830
- " -target " , " x86_64-unknown-linux " ,
830
+ " -target " , defaultTargetTriple ,
831
831
]
832
832
#endif
833
833
@@ -891,8 +891,8 @@ final class BuildPlanTests: XCTestCase {
891
891
892
892
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 " , " -target " , " x86_64-apple-macosx10.10 " ] )
893
893
#else
894
- 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 " , " -target " , " x86_64-unknown-linux " ] )
895
- 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 " , " -target " , " x86_64-unknown-linux " ] )
894
+ 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 " , " -target " , defaultTargetTriple ] )
895
+ 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 " , " -target " , defaultTargetTriple ] )
896
896
#endif
897
897
}
898
898
0 commit comments