From: Fabian Grünbichler Date: Sat, 11 Jan 2025 15:37:16 +0000 (+0100) Subject: bootstrap: don't attempt to download rustc in tests X-Git-Tag: archive/raspbian/1.84.0+dfsg1-2+rpi1^2~4 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=225d411826040f901ca5f3931b2242649bc0a4b2;p=rustc.git bootstrap: don't attempt to download rustc in tests the tests use a default config, so we need to manually override this option.. Signed-off-by: Fabian Grünbichler Gbp-Pq: Topic build Gbp-Pq: Name bootstrap-don-t-attempt-to-download-rustc-in-tests.patch --- diff --git a/src/bootstrap/src/core/config/config.rs b/src/bootstrap/src/core/config/config.rs index 7c19ff1779..8baa291d32 100644 --- a/src/bootstrap/src/core/config/config.rs +++ b/src/bootstrap/src/core/config/config.rs @@ -1435,6 +1435,10 @@ impl Config { build.cargo = build.cargo.take().or(std::env::var_os("CARGO").map(|p| p.into())); // Debian: don't optimize compiler-rt, the bundled sources are not available.. build.optimized_compiler_builtins = Some(false); + + if let Some(ref mut rust) = toml.rust { + rust.download_rustc = Some(StringOrBool::Bool(false)); + } } if let Some(include) = &toml.profile {