Skip to content

[stubs] Autolink against icucore on Darwin. #9780

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

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 added 3 commits May 18, 2017 19:41
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

Copy link
Contributor

@jrose-apple jrose-apple left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me. We should add -lc++ and -framework Foundation in a follow-up commit too. (Unfortunately for us the only options supported are -l and -framework, IIRC.)

@swift-ci
Copy link
Contributor

Build failed
Jenkins build - Swift Test Linux Platform
Git Commit - 8e0362e
Test requested by - @milseman

@milseman
Copy link
Member Author

@swift-ci please test Linux Platform

@swift-ci
Copy link
Contributor

Build failed
Jenkins build - Swift Test Linux Platform
Git Commit - 8e0362e
Test requested by - @milseman

@milseman
Copy link
Member Author

@swift-ci please test Linux Platform

@swift-ci
Copy link
Contributor

Build failed
Jenkins build - Swift Test OS X Platform
Git Commit - 8e0362e
Test requested by - @milseman

@milseman
Copy link
Member Author

@swift-ci please test OS X platform

@milseman
Copy link
Member Author

(issue was unrelated and already fixed elsewhere)

@milseman milseman merged commit 2b92530 into swiftlang:master May 19, 2017
@milseman milseman deleted the 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