Skip to content

Commit 39c1817

Browse files
committed
Only keep old cg_gcc if the stamp file actually exists
1 parent 6de834d commit 39c1817

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1690,7 +1690,7 @@ impl Step for GccCodegenBackend {
16901690
&CodegenBackendKind::Gcc,
16911691
);
16921692

1693-
if builder.config.keep_stage.contains(&build_compiler.stage) {
1693+
if builder.config.keep_stage.contains(&build_compiler.stage) && stamp.path().exists() {
16941694
trace!("`keep-stage` requested");
16951695
builder.info(
16961696
"WARNING: Using a potentially old codegen backend. \

0 commit comments

Comments
 (0)