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>
Thu, 28 May 2026 18:58:07 +0000 (20:58 +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 17f256188e1be8b7e0ec8d2abcef1a12d27949b5..1bffcda1e8cf39de78d50e377e9eab047f822329 100644 (file)
@@ -570,7 +570,7 @@ impl Config {
             annotate_moves_size_limit: rust_annotate_moves_size_limit,
             profile_generate: rust_profile_generate,
             profile_use: rust_profile_use,
-            download_rustc: rust_download_rustc,
+            download_rustc: mut rust_download_rustc,
             lto: rust_lto,
             validate_mir_opts: rust_validate_mir_opts,
             frame_pointers: rust_frame_pointers,
@@ -713,6 +713,7 @@ impl Config {
                 );
                 build_rustc = Some(stage0_rustc);
             }
+            rust_download_rustc = Some(StringOrBool::Bool(false));
         }
 
         if !flags_skip_stage0_validation {