Skip to content

Commit f905579

Browse files
committed
rustc: Disable ThinLTO for LLVM's build
This commit goes back to disabling ThinLTO for building LLVM and its tools. It turns out that this caused a regression at rust-lang#56849 which I believe we'll definitely want to fix before it goes live. The bisection turned up an [upstream LLVM bug][bug], so hopefully there'll eventually be a fix we can backport. I've also been a little uneasy about how we're only enabling ThinLTO for LLVM on Linux, and we haven't had a chance to turn it on for OSX and Windows (other "Tier 1" platforms) yet. Additionally it had an unexpected hit to CI time we never got around to fixing. I'd ideally prefer that we fix these issues as well before re-landing. Closes rust-lang#56849 [bug]: https://bugs.llvm.org/show_bug.cgi?id=40045
1 parent c811915 commit f905579

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

src/ci/docker/dist-x86_64-linux/Dockerfile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,6 @@ ENV RUST_CONFIGURE_ARGS \
101101
--set target.x86_64-unknown-linux-gnu.linker=clang \
102102
--set target.x86_64-unknown-linux-gnu.ar=/rustroot/bin/llvm-ar \
103103
--set target.x86_64-unknown-linux-gnu.ranlib=/rustroot/bin/llvm-ranlib \
104-
--set llvm.thin-lto=true \
105104
--set rust.jemalloc
106105
ENV SCRIPT python2.7 ../x.py dist --host $HOSTS --target $HOSTS
107106
ENV CARGO_TARGET_X86_64_UNKNOWN_LINUX_GNU_LINKER=clang

0 commit comments

Comments
 (0)