about summary refs log tree commit diff
path: root/src/ci/docker
diff options
context:
space:
mode:
authorJakub Beránek <berykubik@gmail.com>2022-07-17 17:37:10 +0200
committerJakub Beránek <berykubik@gmail.com>2022-07-17 17:37:10 +0200
commit97f6f958796bccf765a2e3038a40ecf5a8bb355a (patch)
tree27a40a58068fdb8a373098cb28328d1bb5ece0f0 /src/ci/docker
parent967a9c94b34bb8f394db03b1d205831eddf6f589 (diff)
downloadrust-97f6f958796bccf765a2e3038a40ecf5a8bb355a.tar.gz
rust-97f6f958796bccf765a2e3038a40ecf5a8bb355a.zip
Use LLD linker for compiling rustc on Linux x64 and use ICF for binary size optimization
Diffstat (limited to 'src/ci/docker')
-rw-r--r--src/ci/docker/host-x86_64/dist-x86_64-linux/Dockerfile3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/ci/docker/host-x86_64/dist-x86_64-linux/Dockerfile b/src/ci/docker/host-x86_64/dist-x86_64-linux/Dockerfile
index ab6c888030e..f262bc3c7d8 100644
--- a/src/ci/docker/host-x86_64/dist-x86_64-linux/Dockerfile
+++ b/src/ci/docker/host-x86_64/dist-x86_64-linux/Dockerfile
@@ -122,7 +122,8 @@ ENV RUST_CONFIGURE_ARGS \
       --set target.x86_64-unknown-linux-gnu.ranlib=/rustroot/bin/llvm-ranlib \
       --set llvm.thin-lto=true \
       --set llvm.ninja=false \
-      --set rust.jemalloc
+      --set rust.jemalloc \
+      --set rust.use-lld=true
 ENV SCRIPT ../src/ci/pgo.sh python3 ../x.py dist \
     --host $HOSTS --target $HOSTS \
     --include-default-paths \