Skip to content

Commit

Permalink
Update LLVM 18 (#309)
Browse files Browse the repository at this point in the history
  • Loading branch information
straight-shoota authored May 31, 2024
1 parent 5b72ddd commit 23f1c53
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion docker/alpine.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,6 @@ FROM runtime as build

RUN \
apk add --update --no-cache --force-overwrite \
llvm15-dev llvm15-static g++ libffi-dev
llvm18-dev llvm18-static g++ libffi-dev

CMD ["/bin/sh"]
2 changes: 1 addition & 1 deletion docker/ubuntu.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ FROM runtime as build

RUN \
apt-get update && \
apt-get install -y build-essential llvm-15 lld-15 libedit-dev gdb libffi-dev && \
apt-get install -y build-essential llvm-18 lld-18 libedit-dev gdb libffi-dev && \
apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*

RUN ln -sf /usr/bin/ld.lld-15 /usr/bin/ld.lld
Expand Down
4 changes: 2 additions & 2 deletions linux/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ FROM alpine:3.20
# Install dependencies
RUN apk add --no-cache \
# Statically-compiled llvm
llvm15-dev llvm15-static \
llvm18-dev llvm18-static \
# Static stdlib dependencies
gc-dev zlib-static yaml-static libxml2-static pcre2-dev libevent-static zstd-static \
# Static compiler dependencies
Expand All @@ -40,7 +40,7 @@ ENV CFLAGS="-fPIC -pipe ${release:+-O2}"
# This particularly affects libgc which was bundled upto Crystal 1.12
ENV CRYSTAL_LIBRARY_PATH=""

RUN llvm15-config --version
RUN llvm18-config --version

ARG previous_crystal_release
ADD ${previous_crystal_release} /tmp/crystal.tar.gz
Expand Down

0 comments on commit 23f1c53

Please sign in to comment.