Skip to content

[stubs] Autolink against icucore on Darwin #9781

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 3 commits into from
May 19, 2017

Conversation

milseman
Copy link
Member

@milseman milseman commented May 19, 2017

4.0 cherry-pick of #9780

Explanation: Users of statically linked stdlib need to explicitly link against icucore. This adds an auto linking directive to the stubs to provide that.
Scope: Command line targets and those who want to statically link against swift core
Radar (and possibly SR Issue): rdar://problem/32286893
Risk: Low. Only affects static linking and is more robust on Apple platforms than the driver hack from yesterday
Testing: Full CI testing

milseman added 3 commits May 19, 2017 10:52
Programs using a statically linked build of the standard library need
to explicitly link against icucore. There are various potential
hacks^Wsolutions to this problem, and this is an attempt at a lesser
of evils approach.

Emit a linker directive to perform autolinking against icucore on
Darwin systems. This allows us to avoid hacking the compiler driver
and propagating that hack onto any build systems that don't go through
the driver.
@milseman
Copy link
Member Author

@swift-ci please test

@milseman
Copy link
Member Author

@najacque

@tkremenek tkremenek merged commit f11929d into swiftlang:swift-4.0-branch May 19, 2017
@milseman milseman deleted the 4_0_the_missing_link branch July 11, 2017 23:16
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.

3 participants