[build] Pass target to linker for host tools for Apple SDKs (#32618)
[build] Pass target to linker for host tools for Apple SDKs (#32618)

As part of this refactor some code touched as part of #31794 to better fit into the work done in #32120 -- in detail

* `_add_host_variant_c_compile_link_flags` is now invoked by both add_swift_host_library and add_swift_host_library
* `_add_host_variant_c_compile_link_flags` now sets the target in linker arguments when building against Apple SDKs

Addresses rdar://64911978
nathawes/swift,tkremenek/swift,airspeedswift/swift,CodaFi/swift,roambotics/swift,atrick/swift,parkera/swift,CodaFi/swift,atrick/swift,rudkx/swift,airspeedswift/swift,benlangmuir/swift,ahoppen/swift,tkremenek/swift,apple/swift,glessard/swift,nathawes/swift,hooman/swift,atrick/swift,gregomni/swift,rudkx/swift,hooman/swift,gregomni/swift,roambotics/swift,roambotics/swift,allevato/swift,xwu/swift,airspeedswift/swift,xwu/swift,jmgc/swift,rudkx/swift,tkremenek/swift,jmgc/swift,parkera/swift,apple/swift,ahoppen/swift,ahoppen/swift,hooman/swift,parkera/swift,xwu/swift,hooman/swift,atrick/swift,airspeedswift/swift,rudkx/swift,glessard/swift,CodaFi/swift,nathawes/swift,xwu/swift,ahoppen/swift,airspeedswift/swift,nathawes/swift,ahoppen/swift,jmgc/swift,allevato/swift,JGiola/swift,benlangmuir/swift,jckarter/swift,JGiola/swift,jmgc/swift,apple/swift,parkera/swift,roambotics/swift,xwu/swift,tkremenek/swift,allevato/swift,JGiola/swift,jckarter/swift,jckarter/swift,glessard/swift,gregomni/swift,JGiola/swift,jmgc/swift,tkremenek/swift,allevato/swift,CodaFi/swift,nathawes/swift,apple/swift,roambotics/swift,jmgc/swift,allevato/swift,parkera/swift,apple/swift,atrick/swift,parkera/swift,JGiola/swift,nathawes/swift,allevato/swift,benlangmuir/swift,CodaFi/swift,gregomni/swift,jckarter/swift,hooman/swift,CodaFi/swift,gregomni/swift,benlangmuir/swift,jckarter/swift,allevato/swift,ahoppen/swift,parkera/swift,benlangmuir/swift,jmgc/swift,rudkx/swift,benlangmuir/swift,xwu/swift,jckarter/swift,roambotics/swift,rudkx/swift,xwu/swift,hooman/swift,glessard/swift,gregomni/swift,airspeedswift/swift,atrick/swift,jckarter/swift,parkera/swift,nathawes/swift,CodaFi/swift,airspeedswift/swift,hooman/swift,glessard/swift,tkremenek/swift,apple/swift,JGiola/swift,glessard/swift,tkremenek/swift