Add a -C embed-binary=no
compiler option
#137998
Labels
C-feature-request
Category: A feature request, i.e: not implemented / a PR.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
It would be useful to ask rustc to not embed object code in a rlib when doing LTO. I suggest adding a
-C embed-binary=no
compiler option similar to-C embed-bitcode=no
.This would allow rust-lang/cargo#14575 to be fixed without incurring a compile time cost, as Cargo misuses
-C linker-plugin-lto
as a-C embed-binary=no
option, which currently leads to miscompilations.The text was updated successfully, but these errors were encountered: