Skip to content

Instantly share code, notes, and snippets.

@bin2415
Last active January 29, 2021 02:45
Show Gist options
  • Save bin2415/9c4c563c82aad89ff086bdf73b5af317 to your computer and use it in GitHub Desktop.
Save bin2415/9c4c563c82aad89ff086bdf73b5af317 to your computer and use it in GitHub Desktop.
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 https://github.com/llvm/llvm-project/releases/download/llvmorg-10.0.0/llvm-project-10.0.0.tar.xz -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