4 export LLVM_SRC
=${BASE}/llvm
5 export POLLY_SRC
=${LLVM_SRC}/tools
/polly
6 export CLANG_SRC
=${LLVM_SRC}/tools
/clang
7 export LLVM_BUILD
=${BASE}/llvm_build
9 if [ -e /proc
/cpuinfo
]; then
10 procs
=`cat /proc/cpuinfo | grep processor | wc -l`
15 if ! test -d ${LLVM_SRC}; then
16 git clone http
://llvm.org
/git
/llvm.git
${LLVM_SRC}
19 if ! test -d ${POLLY_SRC}; then
20 git clone http
://llvm.org
/git
/polly.git
${POLLY_SRC}
23 if ! test -d ${CLANG_SRC}; then
24 git clone http
://llvm.org
/git
/clang.git
${CLANG_SRC}
27 mkdir
-p ${LLVM_BUILD}
31 make -j$procs -l$procs