Skip to content

Instantly share code, notes, and snippets.

@hako
Created Dec 3, 2018
Embed
What would you like to do?
build_llvm.sh
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/tools
svn co http://llvm.org/svn/llvm-project/lld/trunk lld
cd ../..
cd llvm/tools
svn co http://llvm.org/svn/llvm-project/polly/trunk polly
cd ../..
cd llvm/tools
svn co http://llvm.org/svn/llvm-project/lldb/trunk lldb
cd ../..
cd llvm/projects
svn co http://llvm.org/svn/llvm-project/compiler-rt/trunk compiler-rt
cd ../..
cd llvm/projects
svn co http://llvm.org/svn/llvm-project/openmp/trunk openmp
cd ../..
cd llvm/projects
svn co http://llvm.org/svn/llvm-project/libcxx/trunk libcxx
cd ../..
cd llvm/projects
svn co http://llvm.org/svn/llvm-project/libcxxabi/trunk libcxxabi
cd ../..
mkdir build
cd build
cmake -G "Unix Makefiles" -DLLVM_TARGETS_TO_BUILD="X86" ../llvm
make -j12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment