Skip to content

Commit

Permalink
Bump Dockerfile to use LLVM 15
Browse files Browse the repository at this point in the history
  • Loading branch information
aurelf authored Nov 24, 2023
1 parent 4e19df4 commit fbd210f
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,13 @@ FROM ubuntu:20.04 AS builder
RUN apt-get update \
&& DEBIAN_FRONTEND=noninteractive apt-get install -y \
cargo \
clang-12 \
clang-15 \
cmake \
g++ \
git \
libz3-dev \
llvm-12-dev \
llvm-12-tools \
llvm-15-dev \
llvm-15-tools \
ninja-build \
python2 \
python3-pip \
Expand All @@ -42,7 +42,7 @@ RUN git clone -b v2.56b https://github.com/google/AFL.git afl \

# Download the LLVM sources already so that we don't need to get them again when
# SymCC changes
RUN git clone -b llvmorg-12.0.0 --depth 1 https://github.com/llvm/llvm-project.git /llvm_source
RUN git clone -b llvmorg-15.0.0 --depth 1 https://github.com/llvm/llvm-project.git /llvm_source

# Build a version of SymCC with the simple backend to compile libc++
COPY . /symcc_source
Expand Down Expand Up @@ -110,9 +110,9 @@ FROM ubuntu:20.04
RUN apt-get update \
&& DEBIAN_FRONTEND=noninteractive apt-get install -y \
build-essential \
clang-12 \
clang-15 \
g++ \
libllvm12 \
libllvm15 \
zlib1g \
sudo \
&& rm -rf /var/lib/apt/lists/* \
Expand All @@ -127,8 +127,8 @@ COPY --from=builder_qsym /afl /afl

ENV PATH /symcc_build:$PATH
ENV AFL_PATH /afl
ENV AFL_CC clang-12
ENV AFL_CXX clang++-12
ENV AFL_CC clang-15
ENV AFL_CXX clang++-15
ENV SYMCC_LIBCXX_PATH=/libcxx_symcc_install

USER ubuntu
Expand Down

0 comments on commit fbd210f

Please sign in to comment.