aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRenato Golin <rengolin@gmail.com>2016-05-01 18:17:39 +0100
committerRenato Golin <rengolin@gmail.com>2016-05-03 13:42:00 +0100
commit9f393da9c8f4629366eef6eed069fd61ed1b336c (patch)
treed9f23311f3ecd94ffefa3bc5641517ce2e4738ad
parent5a10ae1d0ab1bd04bdab96dfc7fa22916c83ca10 (diff)
downloadlinaro-scripts-9f393da9c8f4629366eef6eed069fd61ed1b336c.tar.gz
[stress] Actually use Ninja
Change-Id: I5728717890872fdfb1137606cf8129d6f8e0db55
-rwxr-xr-xstress/build-llvm-forever.sh14
1 files changed, 8 insertions, 6 deletions
diff --git a/stress/build-llvm-forever.sh b/stress/build-llvm-forever.sh
index 465a51f..178a00b 100755
--- a/stress/build-llvm-forever.sh
+++ b/stress/build-llvm-forever.sh
@@ -24,11 +24,13 @@ set +e
ROOT=`pwd`
CPUS=`grep -c proc /proc/cpuinfo`
LINK_JOBS=
-NINJA=
+GEN="Unix Makefiles"
+BUILD="make"
if ninja --version > /dev/null; then
LINK=`free -g | awk '/Mem/ {print $2}'`
LINK_JOBS="-DLLVM_PARALLEL_LINK_JOBS=$LINK"
- NINJA="-G Ninja"
+ GEN="Ninja"
+ BUILD="ninja"
fi
mkdir -p build
@@ -41,7 +43,7 @@ if [ ! -d src/tools/clang ]; then
fi
cd $ROOT/build
if [ ! -f Makefile ]; then
- cmake ../src $NINJA \
+ cmake ../src -G "$GEN" \
-DCMAKE_BUILD_TYPE=Release \
-DLLVM_BUILD_TESTS=True \
-DLLVM_ENABLE_ASSERTIONS=True \
@@ -58,11 +60,11 @@ while /bin/true; do
cd $ROOT/build
echo -n "Cleaning at "
date
- make -j$CPUS clean
+ $BUILD -j$CPUS clean
echo -n "Building at "
date
- make -j$CPUS
+ $BUILD -j$CPUS
echo -n "Testing at "
date
- make -j$CPUS check-all
+ $BUILD -j$CPUS check-all
done