@@ -73,7 +73,7 @@ fileprivate struct PrelinkedObjectFileTests: CoreBasedTests {
7373 results. checkTarget ( " AllLibraries " ) { target in
7474 // There should be tasks to create the prelinked object file and then the static library.
7575 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 " ) ] )
7777 }
7878 results. checkTask ( . matchTarget( target) , . matchRuleType( " Libtool " ) ) { task in
7979 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 {
102102 results. checkTarget ( " AllLibraries " ) { target in
103103 // There should be tasks to create the prelinked object file and then the static library.
104104 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 " ) ] )
106106 }
107107 results. checkTask ( . matchTarget( target) , . matchRuleType( " Libtool " ) ) { task in
108108 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 {
203203 results. checkTarget ( " AllLibraries " ) { target in
204204 // There should be tasks to create the prelinked object file and then the static library.
205205 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 " ) ] )
207207 }
208208 results. checkTask ( . matchTarget( target) , . matchRuleType( " Libtool " ) ) { task in
209209 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 {
272272 results. checkTarget ( " AllLibraries " ) { target in
273273 // There should be tasks to create the prelinked object file and then the static library.
274274 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 " ) ] )
276276 }
277277 results. checkTask ( . matchTarget( target) , . matchRuleType( " Libtool " ) ) { task in
278278 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 {
340340 results. checkTarget ( " AllLibraries " ) { target in
341341 // There should be tasks to create the prelinked object file and then the static library.
342342 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 " ) ] )
344344 }
345345 results. checkTask ( . matchTarget( target) , . matchRuleType( " Libtool " ) ) { task in
346346 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