Skip to content

Commit

Permalink
Use mold in CI.
Browse files Browse the repository at this point in the history
This is faster than the normal GNU ld when compiling yk.
  • Loading branch information
ltratt committed Jul 20, 2023
1 parent 5b96144 commit 33e4948
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .buildbot_dockerfile_debian
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,14 @@ ARG CI_UID
RUN useradd -m -u ${CI_UID} ci
RUN apt-get update && \
apt-get -y install clang-15 make curl procps file git cmake python3 \
libtinfo-dev libzip-dev ninja-build
libtinfo-dev libzip-dev mold ninja-build
WORKDIR /ci
RUN update-alternatives --install /usr/bin/cc cc /usr/bin/clang-15 999
RUN update-alternatives --set cc /usr/bin/clang-15
RUN update-alternatives --install /usr/bin/c++ c++ /usr/bin/clang++-15 999
RUN update-alternatives --set c++ /usr/bin/clang++-15
RUN update-alternatives --install /usr/bin/ld ld /usr/bin/mold 999
RUN update-alternatives --set ld /usr/bin/mold
RUN ln -sf /usr/bin/clang-15 /usr/bin/clang
RUN ln -sf /usr/bin/clang++-15 /usr/bin/clang++
RUN chown ${CI_UID}:${CI_UID} .
Expand Down

0 comments on commit 33e4948

Please sign in to comment.