From 713f4d5cd2feb4682db77662a79d1fd66325e771 Mon Sep 17 00:00:00 2001 From: Jacob Hughes Date: Mon, 14 Mar 2022 21:08:33 -0400 Subject: [PATCH] hack/workaround: disable LTO --- src/bootstrap/builder.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/bootstrap/builder.rs b/src/bootstrap/builder.rs index 32ccca8bcdd2c..e3b7dc670a966 100644 --- a/src/bootstrap/builder.rs +++ b/src/bootstrap/builder.rs @@ -1684,6 +1684,7 @@ impl<'a> Builder<'a> { rustflags.arg(&format!("-Cllvm-args=-import-instr-limit={}", limit)); } } + cargo.env(profile_var("LTO"), "off"); Cargo { command: cargo, rustflags, rustdocflags } }