Skip to content

integrate incremental into rustbuild.py #37929

Closed
@nikomatsakis

Description

@nikomatsakis

I had a beautiful writeup of The Plan (tm) here but I accidentally closed the tab. D'oh. So here goes the summarized version:

  • For the time being, you probably want to be doing your incremental builds with nightly, because it will have the most up to date support. Therefore, we will add a --incremental option to configure. It will imply --enable-local-rust and --enable-local-build -- meaning that instead of beta, we'll bootstrap with the local nightly. You have to manage this yourself with rustup. Stay up to date.
  • --incremental will also imply a default target of stage1.
  • When building the stage1 compiler, we'll supply an incremental directory.
  • Furthermore, instead of building the stage2 libs with the stage1 compiler, by default we will copy them. This only works if nobody has changed the metadata format between your nightly and stage1, so we probably want a way to disable this, but it should be a big speedup most of the time.

cc @alexcrichton @michaelwoerister, sound right?

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-incr-compArea: Incremental compilationC-enhancementCategory: An issue proposing an enhancement or a PR with one.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.

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions