Skip to content

[4.2] [Driver] Always link compiler_rt on Darwin (when available) #17896

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

Conversation

jrose-apple
Copy link
Contributor

  • Explanation: Various C and Objective-C features are implemented using functions in the compiler_rt project, and Swift can end up using some of those features simply by importing inlinable C code. This includes Objective-C's @available feature (the equivalent of Swift's #available). Clang always links the usual clang_rt library to supply these features, so Swift should too.

  • Scope: Affects the package manager and users manually invoking swiftc to build executables and libraries. (Xcode uses Clang to link.)

  • Issue: rdar://problem/41911599

  • Risk: Low. The change is straightforward and the effects should be safe, given that this is what Clang and Xcode already do.

  • Testing: Added compiler regression tests.

  • Reviewed by: @davidungar

[Driver] Always link compiler_rt on Darwin (when available)

rdar://problem/41911599
(cherry picked from commit b02d554)
@jrose-apple
Copy link
Contributor Author

@swift-ci Please test

@jrose-apple
Copy link
Contributor Author

@swift-ci Please nominate

@jrose-apple jrose-apple merged commit abad917 into swiftlang:swift-4.2-branch Jul 12, 2018
@jrose-apple jrose-apple deleted the 4.2-batteries-included branch July 12, 2018 03:05
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.

1 participant