From c857ca6f656a652fa5d848ef006b323e3fc02acc Mon Sep 17 00:00:00 2001 From: Simon Detheridge Date: Sat, 1 Aug 2015 10:59:27 +0100 Subject: [PATCH] Ensure debug and release options are explicitly specified with qmake --- Builds/QtCreator/build_all.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) mode change 100644 => 100755 Builds/QtCreator/build_all.sh diff --git a/Builds/QtCreator/build_all.sh b/Builds/QtCreator/build_all.sh old mode 100644 new mode 100755 index 25b44b2..a71eb9e --- a/Builds/QtCreator/build_all.sh +++ b/Builds/QtCreator/build_all.sh @@ -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."