From ce320bb35a12d35bec50e33c7defa47a2f4aff56 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakub=20Ber=C3=A1nek?= Date: Fri, 17 Oct 2025 18:15:09 +0200 Subject: [PATCH] Do not error out for `download-rustc` if LTO is configured --- src/bootstrap/src/core/config/toml/rust.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/bootstrap/src/core/config/toml/rust.rs b/src/bootstrap/src/core/config/toml/rust.rs index 5a2c6e1698698..cb48c7d9aadad 100644 --- a/src/bootstrap/src/core/config/toml/rust.rs +++ b/src/bootstrap/src/core/config/toml/rust.rs @@ -321,7 +321,6 @@ pub fn check_incompatible_options_for_ci_rustc( debuginfo_level_rustc, llvm_tools, llvm_bitcode_linker, - lto, stack_protector, strip, jemalloc, @@ -354,6 +353,7 @@ pub fn check_incompatible_options_for_ci_rustc( save_toolstates: _, codegen_backends: _, lld: _, + lto: _, deny_warnings: _, backtrace_on_ice: _, verify_llvm_ir: _, @@ -393,7 +393,6 @@ pub fn check_incompatible_options_for_ci_rustc( err!(current_rust_config.jemalloc, jemalloc, "rust"); err!(current_rust_config.default_linker, default_linker, "rust"); err!(current_rust_config.stack_protector, stack_protector, "rust"); - err!(current_rust_config.lto, lto, "rust"); err!(current_rust_config.std_features, std_features, "rust"); warn!(current_rust_config.channel, channel, "rust");