bootstrap: don't attempt to download rustc in tests
authorFabian Grünbichler <debian@fabian.gruenbichler.email>
Sat, 11 Jan 2025 15:37:16 +0000 (16:37 +0100)
committerFabian Grünbichler <debian@fabian.gruenbichler.email>
Fri, 11 Apr 2025 11:40:09 +0000 (13:40 +0200)
the tests use a default config, so we need to manually override this
option..

Signed-off-by: Fabian Grünbichler <debian@fabian.gruenbichler.email>
Gbp-Pq: Topic build
Gbp-Pq: Name bootstrap-don-t-attempt-to-download-rustc-in-tests.patch

src/bootstrap/src/core/config/config.rs

index d77da9631dee34e2ca62ab37df451cf21d7375e1..b1c6238b3de429251f2facb937babec56c6f6409 100644 (file)
@@ -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 {