Only keep old cg_gcc if the stamp file actually exists
This commit is contained in:
parent
9b789f0bd0
commit
04707f4f86
1 changed files with 1 additions and 1 deletions
|
|
@ -1690,7 +1690,7 @@ impl Step for GccCodegenBackend {
|
|||
&CodegenBackendKind::Gcc,
|
||||
);
|
||||
|
||||
if builder.config.keep_stage.contains(&build_compiler.stage) {
|
||||
if builder.config.keep_stage.contains(&build_compiler.stage) && stamp.path().exists() {
|
||||
trace!("`keep-stage` requested");
|
||||
builder.info(
|
||||
"WARNING: Using a potentially old codegen backend. \
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue