Skip to content
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

Debug Mode doesn't expose symbols in the shared / static libraries #121

Closed
CryZe opened this issue Apr 16, 2018 · 2 comments · Fixed by #565
Closed

Debug Mode doesn't expose symbols in the shared / static libraries #121

CryZe opened this issue Apr 16, 2018 · 2 comments · Fixed by #565
Labels
bug There is a bug. c api The issue or pull request is about the C API.

Comments

@CryZe
Copy link
Collaborator

CryZe commented Apr 16, 2018

Not quite sure what's happening here, but it's being tracked over here: rust-lang/rust#50007

@CryZe
Copy link
Collaborator Author

CryZe commented May 14, 2018

This seems to be caused due to debug mode not using LTO. Apparently only the symbols of the main compilation unit get exposed in the shared / static library. I'm not sure if this is intended and if so, how to work around it.

@CryZe CryZe added the c api The issue or pull request is about the C API. label May 16, 2018
@CryZe CryZe added the blocked Progress is blocked and can't progress. label Oct 25, 2018
@CryZe
Copy link
Collaborator Author

CryZe commented Nov 8, 2021

It seems like rustc is going to gain cargo rustc -- --crate-type ... which would allow us to directly compile the capi crate rather than needing to reexport it.

@CryZe CryZe linked a pull request Sep 22, 2022 that will close this issue
@CryZe CryZe removed the blocked Progress is blocked and can't progress. label Sep 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug There is a bug. c api The issue or pull request is about the C API.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant