Ensure debug and release options are explicitly specified with qmake

This commit is contained in:
Simon Detheridge 2015-08-01 10:59:27 +01:00
parent 6b702334b9
commit c857ca6f65

5
Builds/QtCreator/build_all.sh Normal file → Executable file
View File

@ -5,6 +5,7 @@ NVIDIA=''
NATIVE=''
CONCURRENCY='-j9'
QMAKE=${QMAKE:-qmake}
RELEASE='CONFIG+=release CONFIG-=debug'
while test $# -gt 0
do
@ -17,6 +18,8 @@ do
;;
--travis) CONCURRENCY="-j1"
;;
--debug) RELEASE="CONFIG+=debug CONFIG-=release"
;;
--*) echo "bad option $1"; exit 1
;;
*) echo "unrecognised argument $1"; exit 1
@ -33,7 +36,7 @@ do
if [ "x1" = "x$REBUILD" ]; then
make clean
fi
$QMAKE "$NVIDIA" "$NATIVE"
$QMAKE "$NVIDIA" "$NATIVE" $RELEASE
make $CONCURRENCY
if [ "x$?" != "x0" ]; then
echo "Build failed! Check output for errors."