cd ~
tar -vzxf llvm-3.3.src.tar.gz
mv llvm-3.3.src llvm
cd llvm/tools/
tar -vzxf cfe-3.3.src.tar.gz
mv cfe-3.3.src clang
cd llvm/tools/clang/tools
tar -vzxf clang-tools-extra-3.3.src.tar.gz
mv clang-tools-extra-3.3.src extra
cd llvm/projects
tar -vzxf compiler-rt-3.3.src.tar.gz
mv compiler-rt-3.3.src compiler-rt
cd llvm
mkdir build
cd build
../configure --enable-optimized --enable-targets=host-only --disable-assertions
make -j4 REQUIRES_RTTI=1
make install
原文:http://www.cnblogs.com/xiaofu/p/4306282.html