summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRohan McGovern <rohan.mcgovern@nokia.com>2010-02-26 03:51:36 (GMT)
committerRohan McGovern <rohan.mcgovern@nokia.com>2010-02-26 03:51:57 (GMT)
commit095c0e901cf4ddd91842e902e89fdc19e69b9a8c (patch)
tree411005919ef4b4d93d9677e01c78f68fd9acce7b
parent704b948a190a1b5dbf4e1c87fb1c633b91b1d51c (diff)
downloadQt-095c0e901cf4ddd91842e902e89fdc19e69b9a8c.zip
Qt-095c0e901cf4ddd91842e902e89fdc19e69b9a8c.tar.gz
Qt-095c0e901cf4ddd91842e902e89fdc19e69b9a8c.tar.bz2
Speed up compilation of this test with MSVC.
This test includes a source file which is almost half a megabyte in size. When compiling with -O2, MSVC2008 can take over 20 minutes to link this test! Turn off optimization, just for this test.
-rw-r--r--tests/auto/qscriptvalue/qscriptvalue.pro7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/auto/qscriptvalue/qscriptvalue.pro b/tests/auto/qscriptvalue/qscriptvalue.pro
index 1588cc5..191cd4a 100644
--- a/tests/auto/qscriptvalue/qscriptvalue.pro
+++ b/tests/auto/qscriptvalue/qscriptvalue.pro
@@ -5,3 +5,10 @@ HEADERS += tst_qscriptvalue.h
# Generated by testgen
SOURCES += tst_qscriptvalue_generated.cpp
+
+
+win32-msvc* {
+ # With -O2, MSVC takes up to 24 minutes to compile this test!
+ QMAKE_CXXFLAGS_RELEASE -= -O1 -O2
+ QMAKE_CXXFLAGS_RELEASE += -Od
+}