From: Fabian Grünbichler Date: Tue, 22 Oct 2024 07:03:38 +0000 (+0200) Subject: bootstrap tests: disable compiler-rt optimizing X-Git-Tag: archive/raspbian/1.85.0+dfsg2-3+rpi1^2~8 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=0ba12e837c31d4c5bcaeacb3eed946e0f08e76be;p=rustc.git bootstrap tests: disable compiler-rt optimizing 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 Gbp-Pq: Topic build Gbp-Pq: Name bootstrap-tests-disable-compiler-rt-optimizing.patch --- diff --git a/src/bootstrap/src/core/config/config.rs b/src/bootstrap/src/core/config/config.rs index 0587408e98..d77da9631d 100644 --- a/src/bootstrap/src/core/config/config.rs +++ b/src/bootstrap/src/core/config/config.rs @@ -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 {