-
Notifications
You must be signed in to change notification settings - Fork 13.3k
#[link_args] is not propagated from libraries to binaries #36176
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
Comments
My particular use case is a library that includes DWARF unwinding info that crashes ld64, so I need to be able to include |
How this propagation mechanism should work is an unresolved question of the issue that's tracking the stabilization of this |
This is an intentional design decision of |
@alexcrichton ack, closing then. I assume that once lld gets integrated into rustc this goes away / gets turned into proper attributes, though the situation might be worse for thrid-party Rust compilers... |
To reproduce:
Build with:
This successfully builds (and it shouldn't, if it would pass the
-Wl,-just_die
). (--verbose
is not usable here because of #36175). If I replace#[link_args]
with e.g.#[link(name = "just_die")]
then the linker invocation fails, so I believe this is a bug with link_args.The text was updated successfully, but these errors were encountered: