Skip to content
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

x.py check --stage 1 silently just checks bootstrap (stage0) compiler #69337

Closed
CAD97 opened this issue Feb 21, 2020 · 0 comments · Fixed by #72172
Closed

x.py check --stage 1 silently just checks bootstrap (stage0) compiler #69337

CAD97 opened this issue Feb 21, 2020 · 0 comments · Fixed by #72172
Labels
C-bug Category: This is a bug. T-bootstrap Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap)

Comments

@CAD97
Copy link
Contributor

CAD97 commented Feb 21, 2020

./x.py check --stage 1 does not build anything (yay, check without waiting for a build!), which means that it cannot actually be checking the stage1 (post-bootstrap) build, and is instead just silently checking the stage0 (bootstrap) build.

This would be most useful with ./x.py check --stage 1 --keep-stage 0, as this would keep this as a check-only build rather than requiring a build of stage 0. This unfortunately can't really be automatic, as changes to the compiler that necessitate a check run would prompt a rebuild of stage 0.

@jonas-schievink jonas-schievink added T-bootstrap Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap) C-bug Category: This is a bug. labels Feb 21, 2020
Dylan-DPC-zz pushed a commit to Dylan-DPC-zz/rust that referenced this issue May 14, 2020
…lexcrichton

Forbid stage arguments to check

Users generally expect that check builds are fast, and that's only true in stage
0 (stages beyond that need us to build a compiler, which is slow).

Closes rust-lang#69337

r? @alexcrichton
@bors bors closed this as completed in 7709688 May 15, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-bug Category: This is a bug. T-bootstrap Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap)
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants