]> git.lizzy.rs Git - rust.git/blobdiff - src/ci/docker/host-x86_64/dist-x86_64-linux/Dockerfile
Use LLD linker for compiling rustc on Linux x64 and use ICF for binary size optimization
[rust.git] / src / ci / docker / host-x86_64 / dist-x86_64-linux / Dockerfile
index 5e6716baed6d9e9dbe5ac89da3468b469cab9370..f262bc3c7d8d2112f04555861a5cccfec888a663 100644 (file)
@@ -98,8 +98,8 @@ COPY host-x86_64/dist-x86_64-linux/build-clang.sh /tmp/
 RUN ./build-clang.sh
 ENV CC=clang CXX=clang++
 
-# rustc-perf version from 2022-04-05
-ENV PERF_COMMIT 04fccd80396f954b339c366e30221f4bd52c5e03
+# rustc-perf version from 2022-05-18
+ENV PERF_COMMIT f66cc8f3e04392b0e2fd811f21fd1ece6ebaded3
 RUN curl -LS -o perf.zip https://github.com/rust-lang/rustc-perf/archive/$PERF_COMMIT.zip && \
     unzip perf.zip && \
     mv rustc-perf-$PERF_COMMIT rustc-perf && \
@@ -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 \