Skip to content

Cargo incorrectly uses -C linker-plugin-lto to request bitcode only crates #14575

Open
@Zoxc

Description

@Zoxc

Problem

Cargo incorrectly uses -C linker-plugin-lto to request bitcode only crates. That's not what -C linker-plugin-lto is intended for. On Windows it has the additional effect of changing how crates a linked together, making it incorrect to mix crates not built with -C linker-plugin-lto with ones which are.

This is a contributing factor to rust-lang/rust#127979.

Steps

No response

Possible Solution(s)

No response

Notes

No response

Version

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-ltoArea: link-time optimizationC-bugCategory: bugO-windowsOS: WindowsS-needs-infoStatus: Needs more info, such as a reproduction or more background for a feature request.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions