From d290929e8cd27b6ce5b282e34cb3dbaf06e09389 Mon Sep 17 00:00:00 2001 From: Pat Hickey Date: Thu, 25 Jun 2020 14:25:30 -0700 Subject: [PATCH] dockerfile: install lld-9 and use it as system ld this reportedly improves `cargo build` times a bunch --- Dockerfile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Dockerfile b/Dockerfile index f880965e8..b4eca336d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -25,10 +25,12 @@ RUN apt-get update \ gcc-multilib \ clang-6.0 \ llvm-6.0 \ + lld-9 \ && rm -rf /var/lib/apt/lists/* RUN update-alternatives --install /usr/bin/clang clang /usr/bin/clang-6.0 100 RUN update-alternatives --install /usr/bin/llvm-config llvm-config /usr/bin/llvm-config-6.0 100 +RUN update-alternatives --install /usr/bin/ld ld /usr/bin/lld-9 50 # Setting a consistent LD_LIBRARY_PATH across the entire environment prevents unnecessary Cargo # rebuilds.