Clang21 update (#5)
All checks were successful
Docker Builders / build-base-builder (push) Successful in 36s
Docker Builders / build-cpp-builder (push) Successful in 5m32s
Docker Builders / build-bigfoot-builder (push) Successful in 37m8s

Reviewed-on: #5
Co-authored-by: Romain BOULLARD <romain.boullard@protonmail.com>
Co-committed-by: Romain BOULLARD <romain.boullard@protonmail.com>
This commit was merged in pull request #5.
This commit is contained in:
2026-01-30 10:33:35 +00:00
committed by Romain BOULLARD
parent dc962cf479
commit 6626e8eaf5

View File

@@ -26,22 +26,22 @@ RUN apt-get update && apt-get install -y \
pipx \ pipx \
&& rm -rf /var/lib/apt/lists/* \ && rm -rf /var/lib/apt/lists/* \
\ \
# Install LLVM 18 # Install LLVM 21
&& wget https://apt.llvm.org/llvm.sh -O /tmp/llvm.sh \ && wget https://apt.llvm.org/llvm.sh -O /tmp/llvm.sh \
&& chmod +x /tmp/llvm.sh \ && chmod +x /tmp/llvm.sh \
&& /tmp/llvm.sh 18 all \ && /tmp/llvm.sh 21 all \
\ \
# Symlinks for clang 18 tools # Symlinks for clang 21 tools
&& ln -sf /usr/bin/clang-18 /usr/bin/clang \ && ln -sf /usr/bin/clang-21 /usr/bin/clang \
&& ln -sf /usr/bin/clang++-18 /usr/bin/clang++ \ && ln -sf /usr/bin/clang++-21 /usr/bin/clang++ \
&& ln -sf /usr/bin/llvm-profdata-18 /usr/bin/llvm-profdata \ && ln -sf /usr/bin/llvm-profdata-21 /usr/bin/llvm-profdata \
&& ln -sf /usr/bin/llvm-cov-18 /usr/bin/llvm-cov \ && ln -sf /usr/bin/llvm-cov-21 /usr/bin/llvm-cov \
&& ln -sf /usr/bin/clang-format-18 /usr/bin/clang-format \ && ln -sf /usr/bin/clang-format-21 /usr/bin/clang-format \
&& ln -sf /usr/bin/clang-tidy-18 /usr/bin/clang-tidy \ && ln -sf /usr/bin/clang-tidy-21 /usr/bin/clang-tidy \
&& ln -sf /usr/bin/run-clang-tidy-18 /usr/bin/run-clang-tidy \ && ln -sf /usr/bin/run-clang-tidy-21 /usr/bin/run-clang-tidy \
&& ln -sf /usr/bin/llvm-ar-18 /usr/bin/llvm-ar \ && ln -sf /usr/bin/llvm-ar-21 /usr/bin/llvm-ar \
&& ln -sf /usr/bin/llvm-nm-18 /usr/bin/llvm-nm \ && ln -sf /usr/bin/llvm-nm-21 /usr/bin/llvm-nm \
&& ln -sf /usr/bin/llvm-ranlib-18 /usr/bin/llvm-ranlib \ && ln -sf /usr/bin/llvm-ranlib-21 /usr/bin/llvm-ranlib \
\ \
# Reset ccache stats # Reset ccache stats
&& ccache --zero-stats && ccache --zero-stats
@@ -58,7 +58,6 @@ RUN pipx ensurepath \
# Build and install mold # Build and install mold
RUN git clone --branch v2.40.4 https://github.com/rui314/mold.git /tmp/mold \ RUN git clone --branch v2.40.4 https://github.com/rui314/mold.git /tmp/mold \
&& cd /tmp/mold \ && cd /tmp/mold \
&& ./install-build-deps.sh \
&& cmake . -DCMAKE_BUILD_TYPE=Release \ && cmake . -DCMAKE_BUILD_TYPE=Release \
-DCMAKE_CXX_COMPILER=clang++ \ -DCMAKE_CXX_COMPILER=clang++ \
-DCMAKE_CXX_COMPILER_LAUNCHER=ccache \ -DCMAKE_CXX_COMPILER_LAUNCHER=ccache \