From 9095bb6fa0ea930df0e267514481cf785520c45d Mon Sep 17 00:00:00 2001 From: =?utf8?q?Fabian=20Gr=C3=BCnbichler?= Date: Sat, 11 Jan 2025 16:37:16 +0100 Subject: [PATCH] bootstrap: don't attempt to download rustc in tests MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 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 --- src/bootstrap/src/core/config/config.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/bootstrap/src/core/config/config.rs b/src/bootstrap/src/core/config/config.rs index d77da9631d..b1c6238b3d 100644 --- a/src/bootstrap/src/core/config/config.rs +++ b/src/bootstrap/src/core/config/config.rs @@ -1456,6 +1456,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 { -- 2.30.2