Skip to content

Commit c7e0eb1

Browse files
Compile LLVM with ThinLTO for x86_64 Linux dist builds.
1 parent 5f456d0 commit c7e0eb1

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

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

+4-1
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,10 @@ ENV RUST_CONFIGURE_ARGS \
9393
--enable-sanitizers \
9494
--enable-profiler \
9595
--enable-compiler-docs \
96-
--set target.x86_64-unknown-linux-gnu.linker=clang
96+
--set target.x86_64-unknown-linux-gnu.linker=clang \
97+
--set target.x86_64-unknown-linux-gnu.ar=/rustroot/bin/llvm-ar \
98+
--set target.x86_64-unknown-linux-gnu.ranlib=/rustroot/bin/llvm-ranlib \
99+
--set llvm.thin-lto=true
97100
ENV SCRIPT python2.7 ../x.py dist --host $HOSTS --target $HOSTS
98101
ENV CARGO_TARGET_X86_64_UNKNOWN_LINUX_GNU_LINKER=clang
99102

0 commit comments

Comments
 (0)