From 8351906ad1ad62c6c279e71f8776520a8128f132 Mon Sep 17 00:00:00 2001 From: Friedemann Kleint Date: Thu, 17 Nov 2011 10:37:24 +0100 Subject: Windows: Add -force-asserts to configure.exe Change-Id: I678011f0e60d74a1b2d63a18570778e1f686f123 Reviewed-by: Harald Fernengel --- tools/configure/configureapp.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'tools') diff --git a/tools/configure/configureapp.cpp b/tools/configure/configureapp.cpp index 2ddc050fe3..2bd129139c 100644 --- a/tools/configure/configureapp.cpp +++ b/tools/configure/configureapp.cpp @@ -508,6 +508,10 @@ void Configure::parseCmdLine() else if (configCmdLine.at(i) == "-no-mp") { dictionary[ "MSVC_MP" ] = "no"; } + else if (configCmdLine.at(i) == "-force-asserts") { + dictionary[ "FORCE_ASSERTS" ] = "yes"; + } + #endif @@ -1264,6 +1268,8 @@ void Configure::parseCmdLine() if (dictionary["BUILDDEV"] == "yes") qtConfig += "private_tests"; + if (dictionary["FORCE_ASSERTS"] == "yes") + qtConfig += "force_asserts"; #if !defined(EVAL) for (QStringList::Iterator dis = disabledModules.begin(); dis != disabledModules.end(); ++dis) { @@ -1655,7 +1661,7 @@ bool Configure::displayHelp() desc("OPENVG", "yes","-openvg", "Enables OpenVG functionality"); desc( "", "Requires EGL support, typically supplied by an OpenGL", false, ' '); desc( "", "or other graphics implementation\n", false, ' '); - + desc( "-force-asserts", "Activate asserts in release mode.\n"); #endif desc( "-platform ", "The operating system and compiler you are building on.\n(default %QMAKESPEC%)\n"); desc( "-xplatform ", "The operating system and compiler you are cross compiling to.\n"); -- cgit v1.2.3