Skip to content

Instantly share code, notes, and snippets.

@Mytherin
Created July 13, 2016 22:16
Show Gist options
  • Save Mytherin/3b6ef566dee90bb27a815a860bd1a03f to your computer and use it in GitHub Desktop.
Save Mytherin/3b6ef566dee90bb27a815a860bd1a03f to your computer and use it in GitHub Desktop.
Shell script for downloading and compiling CMake and LLVM from source.
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