Skip to content

Add a -C embed-binary=no compiler option #137998

Open
@Zoxc

Description

@Zoxc

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-feature-requestCategory: A feature request, i.e: not implemented / a PR.T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions