Add /Zo to release flags for improved optimized build debugging

Updated compiler.pri to make use of the new /Zo
option to improve our debugging capabilities on optimized
builds. This flag is officially supported since
Visual Studio 2013 Update 3.
This commit is contained in:
Stefan Hacker 2015-05-15 09:59:34 +02:00
parent f6e17feace
commit bf2a2cd67c

View File

@ -166,11 +166,13 @@ win32 {
# (https://msdn.microsoft.com/en-us/library/fsk896zz.aspx).
# This includes explicitely disabling /Oy to help debugging
# (https://msdn.microsoft.com/en-us/library/2kxx5t2c.aspx).
# Also set /Zo to enhance optimized debugging
# (https://msdn.microsoft.com/en-us/library/dn785163.aspx?f=255&MSPPError=-2147217396).
QMAKE_CFLAGS_RELEASE -= -Oy
QMAKE_CXXFLAGS_RELEASE -= -Oy
QMAKE_CFLAGS_RELEASE *= -GR -Zi -Oy-
QMAKE_CXXFLAGS_RELEASE *= -GR -Zi -Oy-
QMAKE_CFLAGS_RELEASE *= -GR -Zi -Zo -Oy-
QMAKE_CXXFLAGS_RELEASE *= -GR -Zi -Zo -Oy-
QMAKE_LFLAGS *= /DEBUG /OPT:REF /OPT:ICF /INCREMENTAL:NO
}