From 832c9430bd6a592fc57fac81f508fd0f84996999 Mon Sep 17 00:00:00 2001 From: Alex Crichton Date: Wed, 25 Oct 2017 11:10:29 -0700 Subject: [PATCH] rustbuild: Build libstd with ThinLTO This commit moves the standard library to get compiled with multiple codegen units and ThinLTO like the compiler itself. This I would hope is the last major step towards closing out #45320 --- src/bootstrap/builder.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/bootstrap/builder.rs b/src/bootstrap/builder.rs index bb3d9dc3f33b1..39fb7d7ed8278 100644 --- a/src/bootstrap/builder.rs +++ b/src/bootstrap/builder.rs @@ -623,8 +623,7 @@ impl<'a> Builder<'a> { cargo.arg("--release"); } - if mode != Mode::Libstd && // FIXME(#45320) - self.config.rust_codegen_units.is_none() && + if self.config.rust_codegen_units.is_none() && self.build.is_rust_llvm(compiler.host) && !target.contains("mips") // FIXME(#45654) {