mkdir /home/llvm/ # Home directory for LLVM versions cd /home/llvm/ # change directory to LLVM HOME mkdir llvm-3.2.src/ # make directory for version cd llvm-3.2.src/ # change directory for LLVM verson # Creates the 'llvm' directory in /home/llvm/llvm-3.2.src/ # This gives the directory structure for the build process svn co http://llvm.org/svn/llvm-project/llvm/trunk llvm cd llvm/tools # where to install clang # Creates the 'clang' directory in /home/llvm/llvm-3.2.src/llvm/tools/ svn co http://llvm.org/svn/llvm-project/cfe/trunk clang cd ../projects/ # where to install compiler-rt svn co http://llvm.org/svn/llvm-project/compiler-rt/trunk compiler-rt cd .. mkdir build/ cd build/ ## Update: added --enable-jit to next line to always enable ../llvm/configure --enable-optimized --disable-assertions --enable-jit ## Update: next line was missing 'make' first, then 'make check-all' to test make make check-all ### note: using clang: '/home/llvm/llvm-3.1.src/build/Release/bin/clang' make update /home/llvm/llvm-3.1.src/build# ./Release/bin/clang -v clang version 3.2 (trunk 163314) Target: i386-pc-linux-gnu Thread model: posix /home/llvm/llvm-3.1.src/build# make install make -C runtime install-bytecode make install