Skip to content

ParseSIL: prevent _weakLinked on COFF targets #21798

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
Jan 11, 2019

Conversation

compnerd
Copy link
Member

PE/COFF does not provide weak linking semantics. Ensure that we
diagnose use of _weakLinked on those targets rather than consuming it
and attempting to generate IR for that.

Replace this paragraph with a description of your changes and rationale. Provide links to external references/discussions if appropriate.

Resolves SR-NNNN.

@compnerd
Copy link
Member Author

@jckarter @jrose-apple ... in case you guys care. But, seems pretty easy to diagnose this early enough thanks to @jckarter's very helpful tip about ASTContext.LangOpts.

@compnerd
Copy link
Member Author

@swift-ci please test

@jrose-apple
Copy link
Contributor

Works for me.

@jckarter
Copy link
Contributor

LGTM too.

@swift-ci
Copy link
Contributor

Build failed
Swift Test Linux Platform
Git Sha - a75af81ef6c775c3ae8e3229a0909fd8ffda02fc

PE/COFF does not provide weak linking semantics.  Ensure that we
diagnose use of `_weakLinked` on those targets rather than consuming it
and attempting to generate IR for that.
@compnerd
Copy link
Member Author

@swift-ci please test and merge

@swift-ci swift-ci merged commit 8207d3d into swiftlang:master Jan 11, 2019
@compnerd compnerd deleted the no-weakness-here branch January 12, 2019 00:31
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.

4 participants