@@ -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
}
@@ -336,7 +336,7 @@ final class BuildPlanTests: XCTestCase {
336
336
" -Xlinker " , " -rpath=$ORIGIN " ,
337
337
" @/path/to/build/debug/exe.product/Objects.LinkFileList " ,
338
338
" -runtime-compatibility-version " , " none " ,
339
- " -target " , " x86_64-unknown-linux " ,
339
+ " -target " , defaultTargetTriple ,
340
340
] )
341
341
#endif
342
342
@@ -395,7 +395,7 @@ final class BuildPlanTests: XCTestCase {
395
395
" -Xlinker " , " -rpath=$ORIGIN " ,
396
396
" @/path/to/build/debug/exe.product/Objects.LinkFileList " ,
397
397
" -runtime-compatibility-version " , " none " ,
398
- " -target " , " x86_64-unknown-linux " ,
398
+ " -target " , defaultTargetTriple ,
399
399
] )
400
400
#endif
401
401
@@ -468,7 +468,7 @@ final class BuildPlanTests: XCTestCase {
468
468
" -o " , " /path/to/build/debug/exe " , " -module-name " , " exe " , " -emit-executable " ,
469
469
" -Xlinker " , " -rpath=$ORIGIN " ,
470
470
" @/path/to/build/debug/exe.product/Objects.LinkFileList " ,
471
- " -target " , " x86_64-unknown-linux " ,
471
+ " -target " , defaultTargetTriple ,
472
472
] )
473
473
#endif
474
474
}
@@ -611,7 +611,7 @@ final class BuildPlanTests: XCTestCase {
611
611
" /path/to/build/debug/PkgPackageTests.xctest " , " -module-name " , " PkgPackageTests " , " -emit-executable " ,
612
612
" -Xlinker " , " -rpath=$ORIGIN " ,
613
613
" @/path/to/build/debug/PkgPackageTests.product/Objects.LinkFileList " ,
614
- " -target " , " x86_64-unknown-linux " ,
614
+ " -target " , defaultTargetTriple ,
615
615
] )
616
616
#endif
617
617
}
@@ -663,7 +663,7 @@ final class BuildPlanTests: XCTestCase {
663
663
" -o " , " /path/to/build/debug/exe " , " -module-name " , " exe " , " -emit-executable " ,
664
664
" -Xlinker " , " -rpath=$ORIGIN " ,
665
665
" @/path/to/build/debug/exe.product/Objects.LinkFileList " ,
666
- " -target " , " x86_64-unknown-linux " ,
666
+ " -target " , defaultTargetTriple ,
667
667
] )
668
668
#endif
669
669
}
@@ -764,7 +764,7 @@ final class BuildPlanTests: XCTestCase {
764
764
" -o " , " /path/to/build/debug/Foo " , " -module-name " , " Foo " , " -lBar-Baz " , " -emit-executable " ,
765
765
" -Xlinker " , " -rpath=$ORIGIN " ,
766
766
" @/path/to/build/debug/Foo.product/Objects.LinkFileList " ,
767
- " -target " , " x86_64-unknown-linux " ,
767
+ " -target " , defaultTargetTriple ,
768
768
] )
769
769
770
770
XCTAssertEqual ( barLinkArgs, [
@@ -773,7 +773,7 @@ final class BuildPlanTests: XCTestCase {
773
773
" -module-name " , " Bar_Baz " , " -emit-library " ,
774
774
" -Xlinker " , " -rpath=$ORIGIN " ,
775
775
" @/path/to/build/debug/Bar-Baz.product/Objects.LinkFileList " ,
776
- " -target " , " x86_64-unknown-linux " ,
776
+ " -target " , defaultTargetTriple ,
777
777
] )
778
778
#endif
779
779
@@ -831,7 +831,7 @@ final class BuildPlanTests: XCTestCase {
831
831
" -o " , " /path/to/build/debug/liblib.so " , " -module-name " , " lib " ,
832
832
" -emit-library " , " -Xlinker " , " -rpath=$ORIGIN " ,
833
833
" @/path/to/build/debug/lib.product/Objects.LinkFileList " ,
834
- " -target " , " x86_64-unknown-linux " ,
834
+ " -target " , defaultTargetTriple ,
835
835
]
836
836
#endif
837
837
@@ -895,8 +895,8 @@ final class BuildPlanTests: XCTestCase {
895
895
896
896
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 " ] )
897
897
#else
898
- 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 " ] )
899
- 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 " ] )
898
+ 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 ] )
899
+ 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 ] )
900
900
#endif
901
901
}
902
902
0 commit comments