Skip to content

References to _swift_FORCE_LOAD* symbols should be weak #24258

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 1 commit into from
Apr 25, 2019

Conversation

bob-wilson
Copy link
Contributor

@bob-wilson bob-wilson commented Apr 25, 2019

Cherry-pick #24242 to swift-5.1-branch
rdar://problem/50110036

When Swift always copied the overlay dylibs into app bundles, it was OK
for these symbol references to be non-weak, but with the overlays now
part of the OS on Apple platforms, we need to handle backward deployment
scenarios where a new overlay does not exist on an old OS version.
A weak reference will serve to pull in the overlay dylib if it exists,
without causing a fatal error if it does not. rdar://problem/50110036
@bob-wilson
Copy link
Contributor Author

@swift-ci please test

@bob-wilson bob-wilson merged commit 6ab076b into swiftlang:swift-5.1-branch Apr 25, 2019
@bob-wilson bob-wilson deleted the rdar50110036-51 branch April 25, 2019 16:14
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