mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2025-02-06 17:38:06 +00:00
![Michael Kruse](/assets/img/avatar_default.png)
The autotools build system is based on and requires LLVM's autotools build system to work, which has been depricated and finally removed in r258861. Consequently we also remove the autotools build system from Polly. Differential Revision: http://reviews.llvm.org/D16655 llvm-svn: 259041
33 lines
665 B
Bash
33 lines
665 B
Bash
#!/bin/bash -xe
|
|
|
|
export BASE=`pwd`
|
|
export LLVM_SRC=${BASE}/llvm
|
|
export POLLY_SRC=${LLVM_SRC}/tools/polly
|
|
export CLANG_SRC=${LLVM_SRC}/tools/clang
|
|
export LLVM_BUILD=${BASE}/llvm_build
|
|
|
|
if [ -e /proc/cpuinfo ]; then
|
|
procs=`cat /proc/cpuinfo | grep processor | wc -l`
|
|
else
|
|
procs=1
|
|
fi
|
|
|
|
if ! test -d ${LLVM_SRC}; then
|
|
git clone http://llvm.org/git/llvm.git ${LLVM_SRC}
|
|
fi
|
|
|
|
if ! test -d ${POLLY_SRC}; then
|
|
git clone http://llvm.org/git/polly.git ${POLLY_SRC}
|
|
fi
|
|
|
|
if ! test -d ${CLANG_SRC}; then
|
|
git clone http://llvm.org/git/clang.git ${CLANG_SRC}
|
|
fi
|
|
|
|
mkdir -p ${LLVM_BUILD}
|
|
cd ${LLVM_BUILD}
|
|
|
|
cmake ${LLVM_SRC}
|
|
make -j$procs -l$procs
|
|
make check-polly
|