summaryrefslogtreecommitdiffstats
path: root/mkspecs/features/win32
diff options
context:
space:
mode:
authorMarius Storm-Olsen <marius@trolltech.com>2009-05-13 11:58:18 (GMT)
committerMarius Storm-Olsen <marius@trolltech.com>2009-05-13 12:46:09 (GMT)
commit56191830cdad9cbaa81c2ed8f22f1b2650a5608a (patch)
treee5d5a02c283fd251be2a6753661b33729ccf9dac /mkspecs/features/win32
parenta18ebd2a70e83863bc9a8cc64a65791a6d879f02 (diff)
downloadQt-56191830cdad9cbaa81c2ed8f22f1b2650a5608a.zip
Qt-56191830cdad9cbaa81c2ed8f22f1b2650a5608a.tar.gz
Qt-56191830cdad9cbaa81c2ed8f22f1b2650a5608a.tar.bz2
Turn off Link Time Code Generation (/LTCG) by default
Turning on LTCG affected too many projects, where customers applications would take a long time linking, severly affecting their development time (even though it was only added for release builds) We turn it off by default, and add a -ltcg configuration option, and the possibility to also do CONFIG+=ltcg in projects, should they not want it for Qt, but in their own projects. (Same, they can build Qt with it, and do CONFIG-=ltcg for their project) Reviewed-by: andy
Diffstat (limited to 'mkspecs/features/win32')
-rw-r--r--mkspecs/features/win32/ltcg.prf5
1 files changed, 5 insertions, 0 deletions
diff --git a/mkspecs/features/win32/ltcg.prf b/mkspecs/features/win32/ltcg.prf
new file mode 100644
index 0000000..f6f1299
--- /dev/null
+++ b/mkspecs/features/win32/ltcg.prf
@@ -0,0 +1,5 @@
+CONFIG(release, debug|release) {
+ QMAKE_CFLAGS *= $$QMAKE_CFLAGS_LTCG
+ QMAKE_CXXFLAGS *= $$QMAKE_CXXFLAGS_LTCG
+ QMAKE_LFLAGS *= $$QMAKE_LFLAGS_LTCG
+}