Skip to content

Add C++ symbol visibility annotations for Rust functions and impls #615

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 2 commits into from
Dec 30, 2020

Conversation

dtolnay
Copy link
Owner

@dtolnay dtolnay commented Dec 30, 2020

Closes #612. Based on david-cattermole@363c18b.

@dtolnay dtolnay merged commit cddf386 into master Dec 30, 2020
@dtolnay dtolnay deleted the vis branch December 30, 2020 00:55
david-cattermole added a commit to david-cattermole/cxx that referenced this pull request Jan 2, 2021
Annotations for symbol visibility (such as `__declspec(dllexport)` and
`__attribute__((visibility("default")))`) is the primary use case.
Such annotations are expected to be needed on declarations (headers)
only, however forcing the annotations into the header file only
is causes missing symbols. Therefore the fix is to force the
annotations into both declaration (header files) and definition
(source files).

Original issue: dtolnay#612

PR with the fix for dtolnay#612: dtolnay#615
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.

Add Missing C++ Annotations to Control Symbol Visibility
1 participant