Skip to content

[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

Merged
merged 5 commits into from
Jul 1, 2020

Conversation

edymtt
Copy link
Contributor

@edymtt edymtt commented Jun 30, 2020

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

This is basically a rehash of swiftlang#31794 to add `-target` flag to the linker
invocation when building against Apple SDKs.

Addresses rdar://64911978
@edymtt edymtt requested review from compnerd and shahmishal June 30, 2020 16:19
@edymtt
Copy link
Contributor Author

edymtt commented Jun 30, 2020

@swift-ci please smoke test

@edymtt
Copy link
Contributor Author

edymtt commented Jun 30, 2020

@swift-ci please smoke test

@edymtt
Copy link
Contributor Author

edymtt commented Jun 30, 2020

@swift-ci please test Windows platform

@edymtt
Copy link
Contributor Author

edymtt commented Jun 30, 2020

@swift-ci please clean test Windows platform

@edymtt
Copy link
Contributor Author

edymtt commented Jun 30, 2020

@swift-ci please smoke test

@edymtt
Copy link
Contributor Author

edymtt commented Jun 30, 2020

@swift-ci please clean test Windows platform

@edymtt
Copy link
Contributor Author

edymtt commented Jun 30, 2020

@swift-ci please smoke test

@edymtt
Copy link
Contributor Author

edymtt commented Jun 30, 2020

@swift-ci please clean test Windows platform

@edymtt edymtt changed the title [build] Pass target to linker for host tools [build] Pass target to linker for host tools for Apple SDKs Jun 30, 2020
Copy link
Member

@compnerd compnerd left a 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

@edymtt
Copy link
Contributor Author

edymtt commented Jul 1, 2020

@swift-ci please smoke test

@edymtt
Copy link
Contributor Author

edymtt commented Jul 1, 2020

@swift-ci please clean test Windows platform

@edymtt
Copy link
Contributor Author

edymtt commented Jul 1, 2020

@swift-ci please test Windows platform

@edymtt
Copy link
Contributor Author

edymtt commented Jul 1, 2020

@swift-ci please clean test Windows platform

@compnerd
Copy link
Member

compnerd commented Jul 1, 2020

I think that the Windows test was a flake ...

@compnerd
Copy link
Member

compnerd commented Jul 1, 2020

@swift-ci please test Windows platform

@edymtt edymtt merged commit d285123 into swiftlang:master Jul 1, 2020
@edymtt edymtt deleted the add_target_to_linker_args_host_tool branch July 1, 2020 18:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants