Skip to content

Commit

Permalink
Add lld and libc++
Browse files Browse the repository at this point in the history
  • Loading branch information
Dorian Eikenberg committed May 26, 2023
1 parent c9162ba commit 0808756
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions build/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,21 +1,26 @@
FROM ubuntu:lunar

ARG LLVM_MAJOR=16
ENV LLVM_MAJOR=${LLVM_MAJOR}

RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y -q \
bison \
clang-16 \
clang-${LLVM_MAJOR} \
cmake \
curl \
flex \
gcovr \
git \
g++ \
libc++-${LLVM_MAJOR}-dev \
libglib2.0-dev \
libjson-c-dev \
libtclap-dev \
libtool \
libvirt-dev \
libyara-dev \
libxen-dev \
lld-${LLVM_MAJOR} \
make \
ninja-build \
pkg-config \
Expand All @@ -25,9 +30,10 @@ RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y -q \
wget \
&& rm -rf /var/lib/apt/lists/*

RUN update-alternatives --install /usr/bin/clang clang /usr/bin/clang-16 100 \
&& update-alternatives --install /usr/bin/clang++ clang++ /usr/bin/clang++-16 100 \
&& update-alternatives --install /usr/bin/clang-cpp clang-cpp /usr/bin/clang-cpp-16 100
RUN update-alternatives --install /usr/bin/clang clang /usr/bin/clang-${LLVM_MAJOR} 100 \
&& update-alternatives --install /usr/bin/clang++ clang++ /usr/bin/clang++-${LLVM_MAJOR} 100 \
&& update-alternatives --install /usr/bin/clang-cpp clang-cpp /usr/bin/clang-cpp-${LLVM_MAJOR} 100 \
&& update-alternatives --install /usr/bin/lld lld /usr/bin/lld-${LLVM_MAJOR} 100

RUN git clone https://github.com/bitdefender/libkvmi.git \
&& cd libkvmi \
Expand Down

0 comments on commit 0808756

Please sign in to comment.