Skip to content

Caching rust-lld #2533

@Kobzol

Description

@Kobzol

The documentation states a caveat that sccache does not work for caching final binary Rust crates that invoke the system linker. I assume that it works like this because it is hard/impossible to identify the exact system linker version and ensure that the output will be the same.

However, rustc sometimes uses a self-contained linker (such as rust-lld, which is used by default on x86_64-unknown-linux-gnu starting from 1.90.0), which corresponds to the used rustc version, and should not depend on the environment/system linker. Would it be possible to cache even the final linking invocation in this case?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions