bootstrap tests: disable compiler-rt optimizing
authorFabian Grünbichler <f.gruenbichler@proxmox.com>
Tue, 22 Oct 2024 07:03:38 +0000 (09:03 +0200)
committerFabian Grünbichler <debian@fabian.gruenbichler.email>
Tue, 29 Oct 2024 12:18:35 +0000 (13:18 +0100)
it cannot work since there are no bundled LLVM (and thus no bundled
compiler-rt) sources available. during the regular build this is handled by our
config, but bootstrap tests don't use that..

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
Gbp-Pq: Topic build
Gbp-Pq: Name bootstrap-tests-disable-compiler-rt-optimizing.patch

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

index bdfee55d8d183c61d8eb6a0ea0f64e09bc08ac82..13a84d3c7efd1a5b1a1323a0d0531089a8d34199 100644 (file)
@@ -1372,6 +1372,8 @@ impl Config {
             let build = toml.build.get_or_insert_with(Default::default);
             build.rustc = build.rustc.take().or(std::env::var_os("RUSTC").map(|p| p.into()));
             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(include) = &toml.profile {