-
Notifications
You must be signed in to change notification settings - Fork 10.5k
[build] Pass target to linker for host tools for Apple SDKs #32618
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[build] Pass target to linker for host tools for Apple SDKs #32618
Conversation
This is basically a rehash of swiftlang#31794 to add `-target` flag to the linker invocation when building against Apple SDKs. Addresses rdar://64911978
@swift-ci please smoke test |
@swift-ci please smoke test |
@swift-ci please test Windows platform |
@swift-ci please clean test Windows platform |
@swift-ci please smoke test |
@swift-ci please clean test Windows platform |
@swift-ci please smoke test |
@swift-ci please clean test Windows platform |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM with the removal of the condition on L91/93
@swift-ci please smoke test |
@swift-ci please clean test Windows platform |
@swift-ci please test Windows platform |
@swift-ci please clean test Windows platform |
I think that the Windows test was a flake ... |
@swift-ci please test Windows platform |
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 bothadd_swift_host_library
andadd_swift_host_library
_add_host_variant_c_compile_link_flags
now sets the target in linker arguments when building against Apple SDKsAddresses rdar://64911978