@@ -159,7 +159,7 @@ import SWBMacro
159159 @Test
160160 func discoveredLdLinkerSpecInfo( ) async throws {
161161 var table = try await ldMacroTable ( )
162- table. push ( BuiltinMacros . LD_MULTIARCH , literal: true )
162+ table. push ( BuiltinMacros . _LD_MULTIARCH , literal: true )
163163 // Default Linker, just check we have one.
164164 try await withSpec ( LdLinkerSpec . self, . deferred, additionalTable: table) { ( info: DiscoveredLdLinkerToolSpecInfo ) in
165165 #expect( !info. toolPath. isEmpty)
@@ -173,7 +173,7 @@ import SWBMacro
173173 @Test ( . requireSDKs( . macOS) )
174174 func discoveredLdLinkerSpecInfo_macOS( ) async throws {
175175 var table = try await ldMacroTable ( )
176- table. push ( BuiltinMacros . LD_MULTIARCH , literal: true )
176+ table. push ( BuiltinMacros . _LD_MULTIARCH , literal: true )
177177 // Default Linker
178178 try await withSpec ( LdLinkerSpec . self, . deferred, additionalTable: table) { ( info: DiscoveredLdLinkerToolSpecInfo ) in
179179 #expect( !info. toolPath. isEmpty)
@@ -191,7 +191,7 @@ import SWBMacro
191191 @Test ( . requireSDKs( . linux) )
192192 func discoveredLdLinkerSpecInfo_Linux( ) async throws {
193193 var table = try await ldMacroTable ( )
194- table. push ( BuiltinMacros . LD_MULTIARCH , literal: true )
194+ table. push ( BuiltinMacros . _LD_MULTIARCH , literal: true )
195195 // Default Linker
196196 try await withSpec ( LdLinkerSpec . self, . deferred, additionalTable: table) { ( info: DiscoveredLdLinkerToolSpecInfo ) in
197197 #expect( !info. toolPath. isEmpty)
@@ -237,7 +237,7 @@ import SWBMacro
237237 @Test ( . requireSDKs( . windows) )
238238 func discoveredLdLinkerSpecInfo_Windows( ) async throws {
239239 var table = try await ldMacroTable ( )
240- table. push ( BuiltinMacros . LD_MULTIARCH , literal: true )
240+ table. push ( BuiltinMacros . _LD_MULTIARCH , literal: true )
241241 try await withSpec ( LdLinkerSpec . self, . deferred, platform: " windows " , additionalTable: table) { ( info: DiscoveredLdLinkerToolSpecInfo ) in
242242 #expect( !info. toolPath. isEmpty)
243243 #expect( info. toolVersion != nil )
@@ -254,8 +254,8 @@ import SWBMacro
254254
255255 // link.exe cannot be used for multipler architectures and requires a distinct link.exe for each target architecture
256256 table. push ( BuiltinMacros . ALTERNATE_LINKER, literal: " link " )
257- table. push ( BuiltinMacros . LD_MULTIARCH , literal: false )
258- table. push ( BuiltinMacros . LD_MULTIARCH_PREFIX_MAP , literal: [ " x86_64:x64 " , " aarch64:arm64 " , " arm64:arm64 " ] )
257+ table. push ( BuiltinMacros . _LD_MULTIARCH , literal: false )
258+ table. push ( BuiltinMacros . _LD_MULTIARCH_PREFIX_MAP , literal: [ " x86_64:x64 " , " aarch64:arm64 " , " i386:x86 " , " thumbv7:arm " ] )
259259
260260 // x86_64
261261 table. push ( BuiltinMacros . ARCHS, literal: [ " x86_64 " ] )
@@ -268,6 +268,7 @@ import SWBMacro
268268 #expect( info. linker == . linkExe)
269269 }
270270
271+ // FIXME: Fails in swift-ci missing arm64 toolchain on x86_64 host.
271272 // // link aarch64
272273 // table.push(BuiltinMacros.ARCHS, literal: ["aarch64"])
273274 // try await withSpec(LdLinkerSpec.self, .deferred, platform: "windows", additionalTable: table) { (info: DiscoveredLdLinkerToolSpecInfo) in
0 commit comments