Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion src/bootstrap/src/core/config/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2823,7 +2823,14 @@ impl Config {
return None;
}

res.unwrap();
// On CI, avoid using download-rustc if the configuration differs from the one used to build download-rustc.
// We typically use `DISABLE_CI_RUSTC_IF_INCOMPATIBLE` to skip download-rustc in such cases.
if CiEnv::is_ci() {
res.unwrap();
} else if let Err(err) = res {
// For non-CI environments, print the error instead of panicking.
eprintln!("{err}");
}
}

Some(commit.clone())
Expand Down
Loading