Merge pull request #28 from gh2k/qmake-debugrel

Ensure debug and release options are explicitly specified with qmake
This commit is contained in:
Matt Feemster 2015-08-01 06:54:23 -07:00
commit e1808c9bda

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."