summaryrefslogtreecommitdiffstats
path: root/src/script
diff options
context:
space:
mode:
authorKent Hansen <kent.hansen@nokia.com>2010-02-22 15:04:10 (GMT)
committerKent Hansen <kent.hansen@nokia.com>2010-02-22 15:04:10 (GMT)
commitcc27aa0066a4fd6641be164800942cba4fa1d73f (patch)
tree139414296e3023561d9cf56fab8acf07ec73f3fc /src/script
parent8aaa61f8ea11c6e5794b5a3f6bf14bbbcb712074 (diff)
downloadQt-cc27aa0066a4fd6641be164800942cba4fa1d73f.zip
Qt-cc27aa0066a4fd6641be164800942cba4fa1d73f.tar.gz
Qt-cc27aa0066a4fd6641be164800942cba4fa1d73f.tar.bz2
Second attempt at work-around for MSVC2008 compiler crash
Turn off optimizations in qscriptengine.cpp. I tried to turn it off/on for a selective few functions, but without success.
Diffstat (limited to 'src/script')
-rw-r--r--src/script/api/qscriptengine.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/script/api/qscriptengine.cpp b/src/script/api/qscriptengine.cpp
index 33104c9..98a24d0 100644
--- a/src/script/api/qscriptengine.cpp
+++ b/src/script/api/qscriptengine.cpp
@@ -4227,4 +4227,9 @@ Q_AUTOTEST_EXPORT bool qt_script_isJITEnabled()
}
#endif
+#ifdef Q_CC_MSVC
+// Try to prevent compiler from crashing.
+#pragma optimize("", off)
+#endif
+
QT_END_NAMESPACE