@@ -73,7 +73,7 @@ fileprivate struct PrelinkedObjectFileTests: CoreBasedTests {
73
73
results. checkTarget ( " AllLibraries " ) { target in
74
74
// There should be tasks to create the prelinked object file and then the static library.
75
75
results. checkTask ( . matchTarget( target) , . matchRuleType( " PrelinkedObjectLink " ) ) { task in
76
- task. checkCommandLineMatches ( [ . suffix( " ld " ) , " -r " , " -arch " , " x86_64 " , " -syslibroot " , . equal( core. loadSDK ( . macOS) . path. str) , " -exported_symbols_list " , " Exports.exp " , " -lWarningLibrary " , " -lSomeLibrary " , " -lAnotherLibrary " , " -o " , . equal( " \( SRCROOT) /build/aProject.build/Debug/AllLibraries.build/Objects-normal/libAllLibraries.a-x86_64-prelink.o " ) ] )
76
+ task. checkCommandLineMatches ( [ . suffix( " ld " ) , " -r " , " -arch " , " x86_64 " , " -platform_version " , " 1 " , . any , . any , " - syslibroot" , . equal( core. loadSDK ( . macOS) . path. str) , " -exported_symbols_list " , " Exports.exp " , " -lWarningLibrary " , " -lSomeLibrary " , " -lAnotherLibrary " , " -o " , . equal( " \( SRCROOT) /build/aProject.build/Debug/AllLibraries.build/Objects-normal/libAllLibraries.a-x86_64-prelink.o " ) ] )
77
77
}
78
78
results. checkTask ( . matchTarget( target) , . matchRuleType( " Libtool " ) ) { task in
79
79
task. checkCommandLineMatches ( [ . suffix( " libtool " ) , " -static " , " -arch_only " , " x86_64 " , " -D " , " -syslibroot " , . equal( core. loadSDK ( . macOS) . path. str) , . equal( " -L \( SRCROOT) /build/Debug " ) , " -filelist " , . equal( " \( SRCROOT) /build/aProject.build/Debug/AllLibraries.build/Objects-normal/x86_64/AllLibraries.LinkFileList " ) , " -dependency_info " , " \( SRCROOT) /build/aProject.build/Debug/AllLibraries.build/Objects-normal/x86_64/AllLibraries_libtool_dependency_info.dat " , " -o " , . equal( " \( SRCROOT) /build/Debug/libAllLibraries.a " ) ] )
@@ -102,7 +102,7 @@ fileprivate struct PrelinkedObjectFileTests: CoreBasedTests {
102
102
results. checkTarget ( " AllLibraries " ) { target in
103
103
// There should be tasks to create the prelinked object file and then the static library.
104
104
results. checkTask ( . matchTarget( target) , . matchRuleType( " PrelinkedObjectLink " ) ) { task in
105
- task. checkCommandLineMatches ( [ . suffix( " ld " ) , " -r " , " -arch " , " x86_64 " , " -syslibroot " , . equal( core. loadSDK ( . macOS) . path. str) , " -exported_symbols_list " , " Exports.exp " , " -lWarningLibrary " , " -lSomeLibrary " , " -lAnotherLibrary " , " -o " , . equal( " \( SRCROOT) /build/aProject.build/Debug/AllLibraries.build/Objects-normal/libAllLibraries.a-x86_64-prelink.o " ) ] )
105
+ task. checkCommandLineMatches ( [ . suffix( " ld " ) , " -r " , " -arch " , " x86_64 " , " -platform_version " , " 1 " , . any , . any , " - syslibroot" , . equal( core. loadSDK ( . macOS) . path. str) , " -exported_symbols_list " , " Exports.exp " , " -lWarningLibrary " , " -lSomeLibrary " , " -lAnotherLibrary " , " -o " , . equal( " \( SRCROOT) /build/aProject.build/Debug/AllLibraries.build/Objects-normal/libAllLibraries.a-x86_64-prelink.o " ) ] )
106
106
}
107
107
results. checkTask ( . matchTarget( target) , . matchRuleType( " Libtool " ) ) { task in
108
108
task. checkCommandLineMatches ( [ . suffix( " libtool " ) , " -static " , " -arch_only " , " x86_64 " , " -D " , " -syslibroot " , . equal( core. loadSDK ( . macOS) . path. str) , . equal( " -L \( SRCROOT) /build/Debug/BuiltProducts " ) , " -filelist " , . equal( " \( SRCROOT) /build/aProject.build/Debug/AllLibraries.build/Objects-normal/x86_64/AllLibraries.LinkFileList " ) , " -dependency_info " , " \( SRCROOT) /build/aProject.build/Debug/AllLibraries.build/Objects-normal/x86_64/AllLibraries_libtool_dependency_info.dat " , " -o " , " /tmp/aProject.dst/usr/local/lib/libAllLibraries.a " ] )
@@ -203,7 +203,7 @@ fileprivate struct PrelinkedObjectFileTests: CoreBasedTests {
203
203
results. checkTarget ( " AllLibraries " ) { target in
204
204
// There should be tasks to create the prelinked object file and then the static library.
205
205
results. checkTask ( . matchTarget( target) , . matchRuleType( " PrelinkedObjectLink " ) ) { task in
206
- task. checkCommandLineMatches ( [ . suffix( " ld " ) , " -r " , " -arch " , " x86_64 " , " -syslibroot " , . equal( core. loadSDK ( . macOS) . path. str) , " -o " , . equal( " \( SRCROOT) /build/aProject.build/Debug-maccatalyst/AllLibraries.build/Objects-normal/libAllLibraries.a-x86_64-prelink.o " ) ] )
206
+ task. checkCommandLineMatches ( [ . suffix( " ld " ) , " -r " , " -arch " , " x86_64 " , " -platform_version " , " 6 " , . any , . any , " - syslibroot" , . equal( core. loadSDK ( . macOS) . path. str) , " -o " , . equal( " \( SRCROOT) /build/aProject.build/Debug-maccatalyst/AllLibraries.build/Objects-normal/libAllLibraries.a-x86_64-prelink.o " ) ] )
207
207
}
208
208
results. checkTask ( . matchTarget( target) , . matchRuleType( " Libtool " ) ) { task in
209
209
task. checkCommandLineMatches ( [ . suffix( " libtool " ) , " -static " , " -arch_only " , " x86_64 " , " -D " , " -syslibroot " , . equal( core. loadSDK ( . macOS) . path. str) , . equal( " -L \( SRCROOT) /build/Debug-maccatalyst " ) , " -L \( core. loadSDK ( . macOS) . path. str) /System/iOSSupport/usr/lib " , " -L \( core. developerPath. path. str) /Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/maccatalyst " , " -L \( core. loadSDK ( . macOS) . path. str) /System/iOSSupport/usr/lib " , " -L \( core. developerPath. path. str) /Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/maccatalyst " , " -filelist " , . equal( " \( SRCROOT) /build/aProject.build/Debug-maccatalyst/AllLibraries.build/Objects-normal/x86_64/AllLibraries.LinkFileList " ) , " -dependency_info " , " \( SRCROOT) /build/aProject.build/Debug-maccatalyst/AllLibraries.build/Objects-normal/x86_64/AllLibraries_libtool_dependency_info.dat " , " -o " , . equal( " \( SRCROOT) /build/Debug-maccatalyst/libAllLibraries.a " ) ] )
@@ -272,7 +272,7 @@ fileprivate struct PrelinkedObjectFileTests: CoreBasedTests {
272
272
results. checkTarget ( " AllLibraries " ) { target in
273
273
// There should be tasks to create the prelinked object file and then the static library.
274
274
results. checkTask ( . matchTarget( target) , . matchRuleType( " PrelinkedObjectLink " ) ) { task in
275
- task. checkCommandLineMatches ( [ . suffix( " ld " ) , " -r " , " -arch " , " arm64 " , " -syslibroot " , . equal( results. runDestinationSDK. path. str) , " -o " , . equal( " \( SRCROOT) /build/aProject.build/Debug-iphoneos/AllLibraries.build/Objects-normal/libAllLibraries.a-arm64-prelink.o " ) ] )
275
+ task. checkCommandLineMatches ( [ . suffix( " ld " ) , " -r " , " -arch " , " arm64 " , " -platform_version " , " 2 " , . any , . any , " - syslibroot" , . equal( results. runDestinationSDK. path. str) , " -o " , . equal( " \( SRCROOT) /build/aProject.build/Debug-iphoneos/AllLibraries.build/Objects-normal/libAllLibraries.a-arm64-prelink.o " ) ] )
276
276
}
277
277
results. checkTask ( . matchTarget( target) , . matchRuleType( " Libtool " ) ) { task in
278
278
task. checkCommandLineMatches ( [ . suffix( " libtool " ) , " -static " , " -arch_only " , " arm64 " , " -D " , " -syslibroot " , . equal( results. runDestinationSDK. path. str) , . equal( " -L \( SRCROOT) /build/Debug-iphoneos " ) , " -filelist " , . equal( " \( SRCROOT) /build/aProject.build/Debug-iphoneos/AllLibraries.build/Objects-normal/arm64/AllLibraries.LinkFileList " ) , " -dependency_info " , " \( SRCROOT) /build/aProject.build/Debug-iphoneos/AllLibraries.build/Objects-normal/arm64/AllLibraries_libtool_dependency_info.dat " , " -o " , . equal( " \( SRCROOT) /build/Debug-iphoneos/libAllLibraries.a " ) ] )
@@ -340,7 +340,7 @@ fileprivate struct PrelinkedObjectFileTests: CoreBasedTests {
340
340
results. checkTarget ( " AllLibraries " ) { target in
341
341
// There should be tasks to create the prelinked object file and then the static library.
342
342
results. checkTask ( . matchTarget( target) , . matchRuleType( " PrelinkedObjectLink " ) ) { task in
343
- task. checkCommandLineMatches ( [ . suffix( " ld " ) , " -r " , " -arch " , " x86_64 " , " -syslibroot " , . equal( results. runDestinationSDK. path. str) , " -o " , . equal( " \( SRCROOT) /build/aProject.build/Debug-iphonesimulator/AllLibraries.build/Objects-normal/libAllLibraries.a-x86_64-prelink.o " ) ] )
343
+ task. checkCommandLineMatches ( [ . suffix( " ld " ) , " -r " , " -arch " , " x86_64 " , " -platform_version " , " 7 " , . any , . any , " - syslibroot" , . equal( results. runDestinationSDK. path. str) , " -o " , . equal( " \( SRCROOT) /build/aProject.build/Debug-iphonesimulator/AllLibraries.build/Objects-normal/libAllLibraries.a-x86_64-prelink.o " ) ] )
344
344
}
345
345
results. checkTask ( . matchTarget( target) , . matchRuleType( " Libtool " ) ) { task in
346
346
task. checkCommandLineMatches ( [ . suffix( " libtool " ) , " -static " , " -arch_only " , " x86_64 " , " -D " , " -syslibroot " , . equal( results. runDestinationSDK. path. str) , . equal( " -L \( SRCROOT) /build/Debug-iphonesimulator " ) , " -filelist " , . equal( " \( SRCROOT) /build/aProject.build/Debug-iphonesimulator/AllLibraries.build/Objects-normal/x86_64/AllLibraries.LinkFileList " ) , " -dependency_info " , " \( SRCROOT) /build/aProject.build/Debug-iphonesimulator/AllLibraries.build/Objects-normal/x86_64/AllLibraries_libtool_dependency_info.dat " , " -o " , . equal( " \( SRCROOT) /build/Debug-iphonesimulator/libAllLibraries.a " ) ] )
0 commit comments