Skip to content

Reuse LTO products for incremental builds when deps are unchanged #71850

Open
@fenollp

Description

@fenollp

Incremental builds with LTO (thin or fat) always take the same amount of time (~10s on my project) when dependencies are unchanged. It seems to take as long when adding a dependency.

Is it not possible to cache (at least part) of the LTO computations?

Note I'm using cross:

# cross version
cargo 1.44.0-nightly (8751eb301 2020-04-21)

Note also this bug I've encountered WRT LTO: cross-rs/cross#416

#71248 is the most recent issue I could find that seems related.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-linkageArea: linking into static, shared libraries and binariesC-enhancementCategory: An issue proposing an enhancement or a PR with one.I-compiletimeIssue: Problems and improvements with respect to compile times.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