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:51:57 (GMT) |
commit | 095c0e901cf4ddd91842e902e89fdc19e69b9a8c (patch) | |
tree | 411005919ef4b4d93d9677e01c78f68fd9acce7b /tests/auto | |
parent | 704b948a190a1b5dbf4e1c87fb1c633b91b1d51c (diff) | |
download | Qt-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.
Diffstat (limited to 'tests/auto')
-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 +} |