summaryrefslogtreecommitdiff
path: root/mkspecs/win32-msvc2003
diff options
context:
space:
mode:
authorOswald Buddenhagen <oswald.buddenhagen@nokia.com>2010-11-03 11:47:17 +0100
committerOswald Buddenhagen <oswald.buddenhagen@nokia.com>2010-11-03 15:09:14 +0100
commitfc60eb64d38289b448f73889139c94895b74db1a (patch)
treeffd88218bf39be7d87c4e668080eeccbfd0e9fad /mkspecs/win32-msvc2003
parente890821c3c1042f425643facbbbb0e036f5304b6 (diff)
downloadqt4-tools-fc60eb64d38289b448f73889139c94895b74db1a.tar.gz
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-msvc2003')
-rw-r--r--mkspecs/win32-msvc2003/qmake.conf2
1 files changed, 1 insertions, 1 deletions
diff --git a/mkspecs/win32-msvc2003/qmake.conf b/mkspecs/win32-msvc2003/qmake.conf
index 63d1ffda90..a573a4dd8c 100644
--- a/mkspecs/win32-msvc2003/qmake.conf
+++ b/mkspecs/win32-msvc2003/qmake.conf
@@ -53,7 +53,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