Skip to content

Instantly share code, notes, and snippets.

Last active January 29, 2021 02:45
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
What would you like to do?
LLVM Docker
FROM ubuntu:18.04
# Install dependencies
RUN apt-get -y update; \
apt-get install -y --no-install-recommends \
ca-certificates build-essential \
autoconf automake cmake dpkg-dev file git make patch \
libc-dev libc++-dev libgcc-8-dev libstdc++-8-dev python python-dev \
dirmngr gnupg2 lbzip2 wget xz-utils libtinfo5;
RUN mkdir /home/ubuntu && cd /home/ubuntu && \
wget -c -O llvm-project.tar.xz && \
tar -xvf llvm-project.tar.xz
RUN cd /home/ubuntu/llvm-project-10.0.0 && mkdir build && cd build && cmake -G 'Unix Makefiles' -DCMAKE_BUILD_TYPE=Release -DLLVM_ENABLE_PROJECTS='clang;compiler-rt' ../llvm && make -j8 && make install
WORKDIR /home/ubuntu
CMD ["/bin/bash"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment