From a57af3b3e9d997c7ed010f5f7334d8f2fcb31175 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marjam=C3=A4ki?= Date: Sat, 28 Nov 2009 18:29:32 +0100 Subject: [PATCH] use checked STL in debugmode --- cli/cli.pro | 5 +++++ test/test.pro | 11 +++++++++++ 2 files changed, 16 insertions(+) diff --git a/cli/cli.pro b/cli/cli.pro index 0d285d9eb..b71023069 100644 --- a/cli/cli.pro +++ b/cli/cli.pro @@ -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 diff --git a/test/test.pro b/test/test.pro index 8cc687606..c4fe4e592 100644 --- a/test/test.pro +++ b/test/test.pro @@ -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 + } +} + +