Skip to content

{con,de}structors do not run when linked with LLD #17

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

Closed
arcnmx opened this issue May 2, 2019 · 1 comment · Fixed by #19
Closed

{con,de}structors do not run when linked with LLD #17

arcnmx opened this issue May 2, 2019 · 1 comment · Fixed by #19

Comments

@arcnmx
Copy link

arcnmx commented May 2, 2019

May be a duplicate of #16? I'm not using clang but it is the easiest way to reproduce the issue if your gcc version doesn't support it:

RUSTFLAGS='-C linker=clang -C link-arg=-fuse-ld=lld' cargo test
running 2 tests
test test::test_initialized ... FAILED
test test::test_dylib ... FAILED
@mmastrac
Copy link
Owner

Sorry - been slow on responding to these. We might need to implement LLVM's specific handling for constructors to fix this and #16. This might mean shipping some C alongside the library.

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 a pull request may close this issue.

2 participants