use checked STL in debugmode

This commit is contained in:
Daniel Marjamäki 2009-11-28 18:29:32 +01:00
parent 6084a5a061
commit a57af3b3e9
2 changed files with 16 additions and 0 deletions

View File

@ -29,6 +29,11 @@ win32 {
# These flags are used in original (not generated by QMake) makefiles
contains(QMAKE_CXX, g++) {
QMAKE_CXXFLAGS_WARN_ON += -Wextra -pedantic
CONFIG(debug, debug|release) {
# checked STL
DEFINES += _GLIBCXX_DEBUG
}
}
# Change Visual Studio compiler (CL) warning level to W4

View File

@ -39,3 +39,14 @@ win32 {
CONFIG += console
LIBS += -lshlwapi
}
contains(QMAKE_CXX, g++) {
QMAKE_CXXFLAGS_WARN_ON += -Wextra -pedantic
CONFIG(debug, debug|release) {
# checked STL
DEFINES += _GLIBCXX_DEBUG
}
}