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>
Thu, 24 Apr 2025 15:47:57 +0000 (17:47 +0200)
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 0587408e987efa5aa0b2368b85b3f82d3fac3b8b..d77da9631dee34e2ca62ab37df451cf21d7375e1 100644 (file)
@@ -1454,6 +1454,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 {