Skip to content

[5.1][RemoteMirror] Mark swift_reflection_classIsSwiftMask as a weak import. #24244

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

Conversation

mikeash
Copy link
Contributor

@mikeash mikeash commented Apr 24, 2019

Cherry-pick #24216 to 5.1.

Also have swift-reflection-test check if the symbol exists. This allows swift-reflection-test to work with older Remote Mirror dylibs that don't have it.

rdar://problem/50030805

Also have swift-reflection-test check if the symbol exists. This allows swift-reflection-test to work with older Remote Mirror dylibs that don't have it.

rdar://problem/50030805
@mikeash
Copy link
Contributor Author

mikeash commented Apr 24, 2019

@swift-ci please smoke test and merge

@mikeash
Copy link
Contributor Author

mikeash commented Apr 24, 2019

@swift-ci please test

mikeash and others added 2 commits April 24, 2019 15:30
… addition of __weak_import__ to classIsSwiftMask.
Weak import semantics are not available on PE/COFF.  Ensure that we do not mark
the type as having weak import semantics.  Otherwise, the dllimport'ed symbol is
marked as `dso_local` which is invalid.
@mikeash
Copy link
Contributor Author

mikeash commented Apr 24, 2019

@swift-ci please test

@swift-ci
Copy link
Contributor

Build failed
Swift Test OS X Platform
Git Sha - 5caa1e4

@swift-ci
Copy link
Contributor

Build failed
Swift Test Linux Platform
Git Sha - 5caa1e4

@mikeash mikeash merged commit 6d89fc9 into swiftlang:swift-5.1-branch Apr 25, 2019
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