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>
Tue, 21 Jan 2025 10:38:15 +0000 (11:38 +0100)
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 7c19ff1779c87ac41741d132855e2736067572d7..8baa291d32151997e9155cb9f3f0fb7ca4a19ca0 100644 (file)
@@ -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 {