Make sure asserts are disabled in release mode

This commit is contained in:
Christophe Dumez 2011-04-16 08:18:58 +00:00
parent 2f06099518
commit 0241fa7593
2 changed files with 6 additions and 0 deletions

3
configure vendored
View File

@ -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");

View File

@ -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");