summaryrefslogtreecommitdiffstats
path: root/mkspecs/win32-msvc2010
diff options
context:
space:
mode:
authorOswald Buddenhagen <oswald.buddenhagen@nokia.com>2010-11-03 10:47:17 (GMT)
committerOswald Buddenhagen <oswald.buddenhagen@nokia.com>2010-11-03 14:09:14 (GMT)
commitfc60eb64d38289b448f73889139c94895b74db1a (patch)
treeffd88218bf39be7d87c4e668080eeccbfd0e9fad /mkspecs/win32-msvc2010
parente890821c3c1042f425643facbbbb0e036f5304b6 (diff)
downloadQt-fc60eb64d38289b448f73889139c94895b74db1a.zip
Qt-fc60eb64d38289b448f73889139c94895b74db1a.tar.gz
Qt-fc60eb64d38289b448f73889139c94895b74db1a.tar.bz2
msvc: enable unreferenced code elimination in release with debuginfo builds
that linker optimization is on by default in release builds, so override /DEBUG implicitly turning it off. as it happens, this implicitly disables incremental linking, so that option can go away now. Reviewed-by: joerg Task-number: QTBUG-14007
Diffstat (limited to 'mkspecs/win32-msvc2010')
-rw-r--r--mkspecs/win32-msvc2010/qmake.conf2
1 files changed, 1 insertions, 1 deletions
diff --git a/mkspecs/win32-msvc2010/qmake.conf b/mkspecs/win32-msvc2010/qmake.conf
index 84086e2..44e460e 100644
--- a/mkspecs/win32-msvc2010/qmake.conf
+++ b/mkspecs/win32-msvc2010/qmake.conf
@@ -57,7 +57,7 @@ QMAKE_RUN_CXX_IMP_BATCH = $(CXX) -c $(CXXFLAGS) $(INCPATH) -Fo$@ @<<
QMAKE_LINK = link
QMAKE_LFLAGS = /NOLOGO
QMAKE_LFLAGS_RELEASE = /INCREMENTAL:NO
-QMAKE_LFLAGS_RELEASE_WITH_DEBUGINFO = /INCREMENTAL:NO /DEBUG
+QMAKE_LFLAGS_RELEASE_WITH_DEBUGINFO = /DEBUG /OPT:REF
QMAKE_LFLAGS_DEBUG = /DEBUG
QMAKE_LFLAGS_CONSOLE = /SUBSYSTEM:CONSOLE
QMAKE_LFLAGS_WINDOWS = /SUBSYSTEM:WINDOWS \"/MANIFESTDEPENDENCY:type=\'win32\' name=\'Microsoft.Windows.Common-Controls\' version=\'6.0.0.0\' publicKeyToken=\'6595b64144ccf1df\' language=\'*\' processorArchitecture=\'*\'\"