Skip to content

Commit

Permalink
Bump LLVM version to 18
Browse files Browse the repository at this point in the history
This commit changes clang installed directly from apt to clang installed
by an install LLVM apt script.
It installs LLVM18 (not reproducible).

To make it work easily, it was necessary to change Debian to Ubuntu.
  • Loading branch information
Advenam Tacet committed Feb 26, 2024
1 parent fbd393b commit 6fd3e33
Showing 1 changed file with 12 additions and 6 deletions.
18 changes: 12 additions & 6 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,20 +1,26 @@
FROM debian:12-slim
FROM ubuntu:jammy

RUN apt update && apt install -y \
build-essential \
clang \
gnupg \
lsb-release \
ruby \
ruby-dev \
software-properties-common \
wget \
&& rm -rf /var/lib/apt/lists/*

RUN wget https://apt.llvm.org/llvm.sh && chmod +x llvm.sh
RUN ./llvm.sh 18

ENV APP_DIR="/app"
RUN mkdir $APP_DIR
WORKDIR $APP_DIR

ENV CC="clang"
ENV CXX="clang++"
ENV LDSHARED="clang -shared"
ENV LDSHAREDXX="clang++ -shared"
ENV CC="clang-18"
ENV CXX="clang++-18"
ENV LDSHARED="clang-18 -shared"
ENV LDSHAREDXX="clang++-18 -shared"

# The MAKE variable allows overwriting the make command at runtime. This forces the
# Ruby C extension to respect ENV variables when compiling, like CC, CFLAGS, etc.
Expand Down

0 comments on commit 6fd3e33

Please sign in to comment.