-
-
Save ursine/9683421 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
#!/bin/bash | |
rm -rf llvmbuild | |
svn co http://llvm.org/svn/llvm-project/llvm/trunk llvm | |
cd llvm/tools | |
svn co http://llvm.org/svn/llvm-project/cfe/trunk clang | |
cd ../.. | |
cd llvm/tools/clang/tools | |
svn co http://llvm.org/svn/llvm-project/clang-tools-extra/trunk extra | |
cd ../../../.. | |
cd llvm/projects | |
svn co http://llvm.org/svn/llvm-project/compiler-rt/trunk compiler-rt | |
cd ../.. | |
mkdir llvmbuild | |
cd llvmbuild | |
echo "Starting build..." | |
../llvm/configure --enable-optimized --enable-profiling --enable-assertions CC=gcc CXX=g++ | |
echo "Building..." | |
make -j12 | |
echo "Build finished." | |
echo "Attempting to install." | |
sudo make install | |
echo "done." |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment