summaryrefslogtreecommitdiffstats
path: root/src/corelib/tools/tools.pri
diff options
context:
space:
mode:
authorThiago Macieira <thiago.macieira@intel.com>2014-02-12 21:51:58 -0800
committerThe Qt Project <gerrit-noreply@qt-project.org>2014-02-18 17:18:42 +0100
commitd7b0581c1c2ef60c08d238dae39298af6904918f (patch)
tree7604dff3f7aa6cf900470494fe969eee1625c431 /src/corelib/tools/tools.pri
parent0702418c8134876577033b88fe10cc6faf1663ee (diff)
Make sure that the compiler is strict in QtCore
ICC defaults to "fast math" mode, which allows it to do non-compliant operations that may or may not result in unexpected values. Generally, it's ok, but apparently the code in qlocale_tools.cpp is too complex, so we're not taking chances. I can't rule out an issue in the code, though. Task-number: QTBUG-36795 Change-Id: Ica5cb77fb3a65d22ae8ad22e13b4ba78f1b5dadf Reviewed-by: Lars Knoll <lars.knoll@digia.com>
Diffstat (limited to 'src/corelib/tools/tools.pri')
-rw-r--r--src/corelib/tools/tools.pri2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/corelib/tools/tools.pri b/src/corelib/tools/tools.pri
index cac596f0bc..52bb987506 100644
--- a/src/corelib/tools/tools.pri
+++ b/src/corelib/tools/tools.pri
@@ -1,5 +1,7 @@
# Qt tools module
+intel_icc: QMAKE_CXXFLAGS += -fp-model strict
+
HEADERS += \
tools/qalgorithms.h \
tools/qarraydata.h \