Skip to content

Instantly share code, notes, and snippets.

@ursine
Forked from matthiasvegh/getClang.sh
Last active August 29, 2015 13:57
Show Gist options
  • Save ursine/9683421 to your computer and use it in GitHub Desktop.
Save ursine/9683421 to your computer and use it in GitHub Desktop.
#!/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