Actually, I tested this again without thechris wrote:It's important that NDEBUG and NO_DEBUG are only defined in the release build. You should be able to do this by placing a scope around the statement that adds them:Code: Select all
release {
DEFINES += \
NDEBUG \
NO_DEBUG
}
--Chris
Code: Select all
DEFINES += \
NDEBUG \
NO_DEBUG
Code: Select all
QMAKE_CXXFLAGS_RELEASE = \
-ffast-math \
-fexpensive-optimizations \
-fomit-frame-pointer \
-msse2 -O2
QMAKE_CFLAGS_RELEASE = \
-ffast-math \
-fexpensive-optimizations \
-fomit-frame-pointer \
-msse2 -O2
cartrite