Created
August 15, 2013 13:38
-
-
Save vittorioromeo/6240893 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 | |
sudo echo "pass" | |
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 ../../llvm/tools/clang/tools | |
svn co http://llvm.org/svn/llvm-project/clang-tools-extra/trunk extra | |
cd ../../../../llvm/projects | |
svn co http://llvm.org/svn/llvm-project/compiler-rt/trunk compiler-rt | |
cd ../.. | |
mkdir ./llvmbuild | |
cd ./llvmbuild | |
cmake ../llvm -DCMAKE_BUILD_TYPE="RELEASE" -DC_INCLUDE_DIRS="/usr/include:/usr/include/c++:/usr/include/c++/4.8.1:" -DLLVM_ENABLE_ASSERTIONS="FALSE" -DCMAKE_INSTALL_PREFIX="/usr/" | |
make -j8 && sudo make install -j8 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment