Created
July 13, 2016 22:16
-
-
Save Mytherin/3b6ef566dee90bb27a815a860bd1a03f to your computer and use it in GitHub Desktop.
Shell script for downloading and compiling CMake and LLVM from source.
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
export INSTALLDIR=/scratch/llvm | |
wget https://cmake.org/files/v3.6/cmake-3.6.0.tar.gz | |
tar xvf cmake-3.6.0.tar.gz | |
cd cmake-3.6.0 | |
./bootstrap --prefix=$INSTALLDIR | |
make | |
make install | |
cd .. | |
svn co http://llvm.org/svn/llvm-project/llvm/trunk llvm | |
mkdir build && cd build | |
$INSTALLDIR/bin/cmake -G "Unix Makefiles" -DCMAKE_INSTALL_PREFIX=$INSTALLDIR -DCMAKE_BUILD_TYPE=Release -DLLVM_ENABLE_ASSERTIONS=Off ../llvm | |
make | |
make install |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment