mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-15 12:39:31 +03:00
Only keep old cg_gcc if the stamp file actually exists
This commit is contained in:
@@ -1690,7 +1690,7 @@ fn run(self, builder: &Builder<'_>) -> Self::Output {
|
||||
&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. \
|
||||
|
||||
Reference in New Issue
Block a user