diff options
author | Rohan McGovern <rohan.mcgovern@nokia.com> | 2010-02-26 03:51:36 (GMT) |
---|---|---|
committer | Rohan McGovern <rohan.mcgovern@nokia.com> | 2010-02-26 03:58:26 (GMT) |
commit | 2931f07dbf824b7d11474bc040e08fcc8c01a166 (patch) | |
tree | 5d843facc4e8e7623ec86912cafc0672082f3872 | |
parent | 848ddd11363479629ff384784937a099d94109df (diff) | |
download | Qt-2931f07dbf824b7d11474bc040e08fcc8c01a166.zip Qt-2931f07dbf824b7d11474bc040e08fcc8c01a166.tar.gz Qt-2931f07dbf824b7d11474bc040e08fcc8c01a166.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.pro | 7 |
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 +} |