summaryrefslogtreecommitdiffstats
path: root/tests/auto/corelib/kernel/qmetatype/qmetatype.pro
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/corelib/kernel/qmetatype/qmetatype.pro')
-rw-r--r--tests/auto/corelib/kernel/qmetatype/qmetatype.pro15
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/auto/corelib/kernel/qmetatype/qmetatype.pro b/tests/auto/corelib/kernel/qmetatype/qmetatype.pro
index d19ec23760..fc262b8fc7 100644
--- a/tests/auto/corelib/kernel/qmetatype/qmetatype.pro
+++ b/tests/auto/corelib/kernel/qmetatype/qmetatype.pro
@@ -15,3 +15,18 @@ win32-msvc*|wince|winrt {
QMAKE_CFLAGS_RELEASE -= -O2
}
}
+
+clang {
+ # clang has some performance problems with the test. Especially
+ # with automaticTemplateRegistration which creates few thousands
+ # template instantiations (QTBUG-37237). Removing -O2 and -g
+ # improves the situation, but it is not solving the problem.
+ QMAKE_CXXFLAGS_RELEASE -= -O2
+ QMAKE_CFLAGS_RELEASE -= -O2
+ QMAKE_CXXFLAGS_RELEASE -= -g
+ QMAKE_CFLAGS_RELEASE -= -g
+
+ # Building for ARM (eg iOS) is affected so much that we disable
+ #the template part of the test
+ contains(QT_ARCH, arm): DEFINES += TST_QMETATYPE_BROKEN_COMPILER
+}