Skip to content

[5.1] Under -enable-library-evolution, imports need Library Evolution too #25572

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

Cherry-pick of #25549 to the 5.1 branch. Reviewed by @slavapestov.

rdar://50261171

…wiftlang#25549)

Otherwise, there's no guarantee of binary compatibility, and whoever
turned on library evolution support shouldn't be lulled into a false
sense of security.

This is just a warning for now, but will be promoted to an error later
once clients have shaken out any places where they're doing this.
Note that the still-experimental '@_implementationOnly' opts out of
this check, because that enforces that the import doesn't make its way
into the current module's public source or binary interface.

rdar://50261171
(cherry picked from commit 2397bf4)
@jrose-apple
Copy link
Contributor Author

@swift-ci Please test

@swift-ci
Copy link
Contributor

Build failed
Swift Test OS X Platform
Git Sha - 23453ed

@jrose-apple
Copy link
Contributor Author

Flaky ModelIO test that I think @lorentey knows about already. :-/

@swift-ci Please test macOS

@jrose-apple jrose-apple merged commit 356890b into swiftlang:swift-5.1-branch Jun 18, 2019
@jrose-apple jrose-apple deleted the 5.1-no-missing-link-here branch June 18, 2019 22:58
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