Created
December 16, 2013 09:44
-
-
Save matthiasvegh/7984552 to your computer and use it in GitHub Desktop.
A simple clang getter
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 | |
#A clang fether/builder from llvm, using svn | |
rm -rf llvm | |
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