Update LLVM to 22 and Mold to 2.41.0 (#12)
All checks were successful
Docker Builders / build-base-builder (push) Successful in 40m5s
Docker Builders / build-cpp-builder (push) Successful in 46m7s

Reviewed-on: #12
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 #12.
This commit is contained in:
2026-04-16 13:41:26 +00:00
committed by Romain BOULLARD
parent 3db53f7983
commit 64b2bf5670
3 changed files with 11 additions and 20 deletions

View File

@@ -27,7 +27,7 @@ jobs:
- name: Build - name: Build
run: | run: |
docker build -t ${{ env.BASE_BUILDER_TAG }}:${{ env.BRANCH_NAME_LOWER }} ./Linux/BaseBuilder docker build -t ${{ env.BASE_BUILDER_TAG }}:${{ env.BRANCH_NAME_LOWER }} --no-cache ./Linux/BaseBuilder
- name: Login to registry - name: Login to registry
run: | run: |
@@ -54,7 +54,7 @@ jobs:
- name: Build - name: Build
run: | run: |
docker build -t ${{ env.CPP_BUILDER_TAG }}:${{ env.BRANCH_NAME_LOWER }} --build-arg BASE_BUILDER=${{ env.BASE_BUILDER_TAG }}:${{ env.BRANCH_NAME_LOWER }} ./Linux/CPPBuilder docker build -t ${{ env.CPP_BUILDER_TAG }}:${{ env.BRANCH_NAME_LOWER }} --build-arg BASE_BUILDER=${{ env.BASE_BUILDER_TAG }}:${{ env.BRANCH_NAME_LOWER }} --no-cache ./Linux/CPPBuilder
- name: Login to registry - name: Login to registry
run: | run: |

View File

@@ -20,5 +20,4 @@ RUN apt-get update && apt-get install -y \
lsb-release \ lsb-release \
software-properties-common \ software-properties-common \
gnupg \ gnupg \
python3 \ python3
&& rm -rf /var/lib/apt/lists/*

View File

@@ -16,26 +16,18 @@ RUN apt-get update && apt-get install -y \
wget \ wget \
lsb-release \ lsb-release \
software-properties-common \ software-properties-common \
pipx \ pipx
&& rm -rf /var/lib/apt/lists/*
ENV PATH="/root/.local/bin:${PATH}" ENV PATH="/root/.local/bin:${PATH}"
# Install LLVM 20 and symlink tools # Install LLVM 22 and symlink tools
RUN wget https://apt.llvm.org/llvm.sh -O /tmp/llvm.sh \ RUN wget https://apt.llvm.org/llvm.sh -O /tmp/llvm.sh \
&& chmod +x /tmp/llvm.sh \ && chmod +x /tmp/llvm.sh \
&& /tmp/llvm.sh 20 all \ && /tmp/llvm.sh 22 all \
&& ln -sf /usr/bin/clang-20 /usr/bin/clang \ && for f in /usr/lib/llvm-22/bin/*; do \
&& ln -sf /usr/bin/clang++-20 /usr/bin/clang++ \ ln -sf "$f" "/usr/local/bin/$(basename "$f")"; \
&& ln -sf /usr/bin/llvm-profdata-20 /usr/bin/llvm-profdata \ done \
&& ln -sf /usr/bin/llvm-cov-20 /usr/bin/llvm-cov \ && rm -f /tmp/llvm.sh*
&& ln -sf /usr/bin/clang-format-20 /usr/bin/clang-format \
&& ln -sf /usr/bin/clang-tidy-20 /usr/bin/clang-tidy \
&& ln -sf /usr/bin/run-clang-tidy-20 /usr/bin/run-clang-tidy \
&& ln -sf /usr/bin/llvm-ar-20 /usr/bin/llvm-ar \
&& ln -sf /usr/bin/llvm-nm-20 /usr/bin/llvm-nm \
&& ln -sf /usr/bin/llvm-ranlib-20 /usr/bin/llvm-ranlib \
&& rm -f /tmp/llvm.sh
RUN VERSION=1.2.0; \ RUN VERSION=1.2.0; \
curl -sSL "https://github.com/facebook/infer/releases/download/v$VERSION/infer-linux-x86_64-v$VERSION.tar.xz" \ curl -sSL "https://github.com/facebook/infer/releases/download/v$VERSION/infer-linux-x86_64-v$VERSION.tar.xz" \
@@ -47,7 +39,7 @@ RUN pipx install conan \
&& pipx install gcovr && pipx install gcovr
# 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.41.0 https://github.com/rui314/mold.git /tmp/mold \
&& cd /tmp/mold \ && cd /tmp/mold \
&& cmake . -DCMAKE_BUILD_TYPE=Release \ && cmake . -DCMAKE_BUILD_TYPE=Release \
-DCMAKE_CXX_COMPILER=clang++ \ -DCMAKE_CXX_COMPILER=clang++ \