Skip to content

Commit

Permalink
Re-enable llvm 19 in cpubuilder dockerfile. (#14)
Browse files Browse the repository at this point in the history
Manual revert of #12.

apt.llvm.org should be working again now.

Untested. If the build fails after push we can just revert.
  • Loading branch information
ScottTodd authored Sep 24, 2024
1 parent cff8945 commit 7741a01
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 12 deletions.
11 changes: 5 additions & 6 deletions dockerfiles/cpubuilder_ubuntu_jammy.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,13 @@ RUN apt update && \
gcc-9 g++-9 \
ninja-build libssl-dev libxml2-dev libcapstone-dev libtbb-dev \
libzstd-dev llvm-dev pkg-config
# TODO: re-enable this when LLVM apt packages are working again
# Recent compiler tools for build configurations like ASan/TSan.
# * See https://apt.llvm.org/ for context on the apt commands.
# ARG LLVM_VERSION=19
# RUN echo "deb http://apt.llvm.org/jammy/ llvm-toolchain-jammy-${LLVM_VERSION} main" >> /etc/apt/sources.list && \
# curl https://apt.llvm.org/llvm-snapshot.gpg.key | gpg --dearmor > /etc/apt/trusted.gpg.d/llvm-snapshot.gpg && \
# apt update && \
# apt install -y clang-${LLVM_VERSION} lld-${LLVM_VERSION}
ARG LLVM_VERSION=19
RUN echo "deb http://apt.llvm.org/jammy/ llvm-toolchain-jammy-${LLVM_VERSION} main" >> /etc/apt/sources.list && \
curl https://apt.llvm.org/llvm-snapshot.gpg.key | gpg --dearmor > /etc/apt/trusted.gpg.d/llvm-snapshot.gpg && \
apt update && \
apt install -y clang-${LLVM_VERSION} lld-${LLVM_VERSION}
# Cleanup.
RUN apt clean && rm -rf /var/lib/apt/lists/*

Expand Down
11 changes: 5 additions & 6 deletions dockerfiles/cpubuilder_ubuntu_jammy_ghr.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,13 @@ RUN apt update && \
gcc-9 g++-9 \
ninja-build libssl-dev libxml2-dev libcapstone-dev libtbb-dev \
libzstd-dev llvm-dev pkg-config
# TODO: re-enable this when LLVM apt packages are working again
# Recent compiler tools for build configurations like ASan/TSan.
# * See https://apt.llvm.org/ for context on the apt commands.
# ARG LLVM_VERSION=19
# RUN echo "deb http://apt.llvm.org/jammy/ llvm-toolchain-jammy-${LLVM_VERSION} main" >> /etc/apt/sources.list && \
# curl https://apt.llvm.org/llvm-snapshot.gpg.key | gpg --dearmor > /etc/apt/trusted.gpg.d/llvm-snapshot.gpg && \
# apt update && \
# apt install -y clang-${LLVM_VERSION} lld-${LLVM_VERSION}
ARG LLVM_VERSION=19
RUN echo "deb http://apt.llvm.org/jammy/ llvm-toolchain-jammy-${LLVM_VERSION} main" >> /etc/apt/sources.list && \
curl https://apt.llvm.org/llvm-snapshot.gpg.key | gpg --dearmor > /etc/apt/trusted.gpg.d/llvm-snapshot.gpg && \
apt update && \
apt install -y clang-${LLVM_VERSION} lld-${LLVM_VERSION}
# Cleanup.
RUN apt clean && rm -rf /var/lib/apt/lists/*

Expand Down

0 comments on commit 7741a01

Please sign in to comment.