Skip to content

rustbuild feature to not rebuild a lower stage #38326

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
est31 opened this issue Dec 12, 2016 · 0 comments
Closed

rustbuild feature to not rebuild a lower stage #38326

est31 opened this issue Dec 12, 2016 · 0 comments
Labels
T-bootstrap Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap)

Comments

@est31
Copy link
Member

est31 commented Dec 12, 2016

Often you are in a situation where you want to try some modifications of some basic library like libcore or some other library with the stage1 compiler, without rebuilding stage1.

A param like --assume-stage=n passed to rustbuild which doesn't (re-)build stage n artifacts would be really neat for this.

@bluss had the original idea, and it would be really useful for development on the i128 PR as well: there, large parts of the libcompiler_builtins crate are under #[cfg(not(stage0))], so I'm only interested in what happens in higher stages when modifying them.

@bluss bluss added the T-bootstrap Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap) label Dec 12, 2016
bors added a commit that referenced this issue Dec 15, 2016

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
rustbuild: Add cli option --keep-stage

This option is intended to be used like:

./x.py build --stage 1 --keep-stage 0

Which skips all stage 0 steps, so that stage 1 can be recompiled
directly (even if for example libcore has changes).

This is useful when working on `cfg(not(stage0))` parts of the
libraries or when re-running stage 1 tests in libraries in general.

Fixes #38326
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
T-bootstrap Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap)
Projects
None yet
Development

No branches or pull requests

2 participants