Created
February 13, 2019 07:30
-
-
Save loliGothicK/2e2dfb93d6da84e6028cff8883661b9a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM ubuntu | |
RUN set -x && \ | |
apt-get update && \ | |
apt-get install -y make cmake gcc g++ python libtool zlib1g zlib1g-dev subversion && \ | |
apt-get clean && \ | |
rm -rf /var/lib/apt/lists/* && \ | |
cd / && \ | |
mkdir llvm && \ | |
cd /llvm && \ | |
svn co http://llvm.org/svn/llvm-project/llvm/trunk llvm && \ | |
cd /llvm/llvm/tools && \ | |
svn co http://llvm.org/svn/llvm-project/cfe/trunk clang && \ | |
cd /llvm/llvm/tools/clang/tools && \ | |
svn co http://llvm.org/svn/llvm-project/clang-tools-extra/trunk extra && \ | |
cd /llvm/llvm/projects && \ | |
svn co http://llvm.org/svn/llvm-project/compiler-rt/trunk compiler-rt && \ | |
cd /llvm && \ | |
mkdir build && \ | |
cd build && \ | |
cmake -G "Unix Makefiles" ../llvm/ -DCMAKE_INSTALL_PREFIX=/usr/local -DCMAKE_BUILD_TYPE=Release && \ | |
make -j$(grep processor /proc/cpuinfo | wc -l) REQUIRES_RTTI=1 && \ | |
make install && \ | |
cd / && \ | |
rm -rf llvm |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment