build_all_backends.sh 729 Bytes
Newer Older
Gerard Ryan's avatar
Gerard Ryan committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37

backends="2 4 6"

if [ "$1" != "" ];
then
	backends=$1
else
	for i in $backends
	do
		rm -fr bin/backend-$i 
	done
fi

echo "****************************"
echo Building backends $backends
echo "****************************"

for i in $backends
do
	echo "****************************"
	echo Building MATHBACKEND $i
	echo "****************************"

	touch src/core/lib/math/backend.h
	result=build-backend-$i-result

	make -j8  BINDIR=bin/backend-$i BACKEND=$i all benchmark >build-backend-$i-result 2>&1
	if [ $? -eq 0 ];
	then
		echo "****************************"
		echo BUILT
		echo "****************************"
		rm -f $result
	else
		echo " ******** build for MATHBACKEND $i failed!!! result is in " $result
	fi
done