Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Dockerfile to LLVM 12 #125

Merged
merged 6 commits into from
Nov 24, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Bump Dockerfile to use LLVM 15
  • Loading branch information
aurelf authored Nov 24, 2023
commit fbd210f4f55b3a0d6fea48d1ecb23e4d56e810d9
16 changes: 8 additions & 8 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -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 \
@@ -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
@@ -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/* \
@@ -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