Skip to content

Incremental compiliation is ineffective when building compiler #55500

Closed
@Aaron1011

Description

@Aaron1011

Rebuilding the compiler took 15 minutes after simply running touch on a file. Given that nothing has actually changed, I would expect that rebuilding would be much faster.

Steps to reproduce:

  1. Clone the rust repository.
  2. Set incremental = true in the rust section of config.toml.
  3. Run ./x.py clean if you've previously built the compiler
  4. Run ./x.py build
  5. Run touch src/librustc/traits/auto_trait.rs
  6. Run ./x.py build again.

The second ./x.py build invocation takes much longer than it should (~15 minutes on my machine), considering that the only thing that's changed is a file timestamp.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-incr-compArea: Incremental compilationI-compiletimeIssue: Problems and improvements with respect to compile times.T-bootstrapRelevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap)T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.WG-incr-compWorking group: Incremental compilation

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions