Compare commits

1 Commits

Author SHA1 Message Date
64b2bf5670 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>
2026-04-16 13:41:26 +00:00
2 changed files with 28 additions and 5 deletions

View File

@@ -5,12 +5,19 @@ ENV TZ=Europe/Paris \
DEBIAN_FRONTEND=noninteractive \
PATH="/root/.local/bin:$PATH"
# Use build cache for ccache
RUN --mount=type=cache,target=/ccache
# Dummy sudo (no security weakening)
RUN echo '#!/bin/bash\n$@' > /usr/bin/sudo \
&& chmod +x /usr/bin/sudo
# Install base dependencies in one layer
RUN apt-get update && apt-get install -y \
unzip \
curl \
wget \
python3 \
pipx
lsb-release \
software-properties-common \
gnupg \
python3

View File

@@ -1,15 +1,22 @@
# Build arguments
ARG BASE_BUILDER
# Base image
FROM $BASE_BUILDER
# Install system dependencies
RUN apt-get update && apt-get install -y \
build-essential \
cppcheck \
ccache \
cmake \
ninja-build \
git \
lsb-release \
pkg-config \
wget \
lsb-release \
software-properties-common \
xvfb
pipx
ENV PATH="/root/.local/bin:${PATH}"
@@ -22,7 +29,6 @@ RUN wget https://apt.llvm.org/llvm.sh -O /tmp/llvm.sh \
done \
&& rm -f /tmp/llvm.sh*
# Install Infer
RUN VERSION=1.2.0; \
curl -sSL "https://github.com/facebook/infer/releases/download/v$VERSION/infer-linux-x86_64-v$VERSION.tar.xz" \
| tar -C /opt -xJ && \
@@ -32,6 +38,16 @@ RUN VERSION=1.2.0; \
RUN pipx install conan \
&& pipx install gcovr
# Build and install mold
RUN git clone --branch v2.41.0 https://github.com/rui314/mold.git /tmp/mold \
&& cd /tmp/mold \
&& cmake . -DCMAKE_BUILD_TYPE=Release \
-DCMAKE_CXX_COMPILER=clang++ \
-B build \
&& cmake --build build -j$(nproc) \
&& cmake --install build \
&& rm -rf /tmp/mold
# Configure Conan with custom profiles and remote
RUN conan config install https://git.romainboullard.com/BigfootDev/ConanProfiles.git --args="--branch main" \
&& conan remote add bigfootpackages https://conan.romainboullard.com/artifactory/api/conan/BigfootPackages \