From 0241fa759306e30f269bfb06a8add86936e303c9 Mon Sep 17 00:00:00 2001 From: Christophe Dumez Date: Sat, 16 Apr 2011 08:18:58 +0000 Subject: [PATCH] Make sure asserts are disabled in release mode --- configure | 3 +++ qcm/qt4.qcm | 3 +++ 2 files changed, 6 insertions(+) diff --git a/configure b/configure index dd08b44c8..db07c6c19 100755 --- a/configure +++ b/configure @@ -345,6 +345,9 @@ public: // Debug mode if(!conf->getenv("QC_ENABLE_DEBUG").isEmpty()) { conf->addExtra("CONFIG += debug"); + } else { + conf->addExtra("CONFIG -= debug"); + conf->addExtra("CONFIG += release"); } #ifdef Q_OS_FREEBSD conf->addLib("-lexecinfo"); diff --git a/qcm/qt4.qcm b/qcm/qt4.qcm index 0d6998f59..8d769b923 100644 --- a/qcm/qt4.qcm +++ b/qcm/qt4.qcm @@ -20,6 +20,9 @@ public: // Debug mode if(!conf->getenv("QC_ENABLE_DEBUG").isEmpty()) { conf->addExtra("CONFIG += debug"); + } else { + conf->addExtra("CONFIG -= debug"); + conf->addExtra("CONFIG += release"); } #ifdef Q_OS_FREEBSD conf->addLib("-lexecinfo");