Skip to content

Commit b688ffa

Browse files
committed
on rustc step, return immediately if --keep-stage 0 was given
Signed-off-by: onur-ozkan <[email protected]>
1 parent bb93548 commit b688ffa

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/bootstrap/src/core/build_steps/compile.rs

+5
Original file line numberDiff line numberDiff line change
@@ -843,6 +843,11 @@ impl Step for Rustc {
843843
let compiler = self.compiler;
844844
let target = self.target;
845845

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+
846851
// NOTE: the ABI of the beta compiler is different from the ABI of the downloaded compiler,
847852
// so its artifacts can't be reused.
848853
if builder.download_rustc() && compiler.stage != 0 {

0 commit comments

Comments
 (0)