We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
--keep-stage 0
1 parent bb93548 commit b688ffaCopy full SHA for b688ffa
src/bootstrap/src/core/build_steps/compile.rs
@@ -843,6 +843,11 @@ impl Step for Rustc {
843
let compiler = self.compiler;
844
let target = self.target;
845
846
+ // Return immediately if `--keep-stage 0` was given.
847
+ if compiler.stage == 0 && builder.config.keep_stage.contains(&compiler.stage) {
848
+ return;
849
+ }
850
+
851
// NOTE: the ABI of the beta compiler is different from the ABI of the downloaded compiler,
852
// so its artifacts can't be reused.
853
if builder.download_rustc() && compiler.stage != 0 {
0 commit comments