aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorChristian Stenger <christian.stenger@qt.io>2019-06-26 15:10:07 +0200
committerChristian Stenger <christian.stenger@qt.io>2019-07-05 12:46:27 +0000
commit49525c578cbc3b42bd753cf0197dd4f440be47f8 (patch)
treeb1b6e651d48365ff80617c7085a5a362010ba699 /tests
parent9703f2e948183aa83c5dbd614bcb087ff134aa42 (diff)
Unify disabling build of llvm related plugins or test on Windows
If libclang's build mode mismatches the current build mode of Qt Creator some plugins are automatically disabled. Do the same for the unittest and unify the way to do this. Change-Id: Ib4cd6494ed63cb89ed8d99b3c0ba23a19572fc9b Reviewed-by: Marco Bubke <marco.bubke@qt.io>
Diffstat (limited to 'tests')
-rw-r--r--tests/unit/unittest/unittest.pro2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/unit/unittest/unittest.pro b/tests/unit/unittest/unittest.pro
index 6565c47a09..c64d22925b 100644
--- a/tests/unit/unittest/unittest.pro
+++ b/tests/unit/unittest/unittest.pro
@@ -9,6 +9,8 @@ include(clang_dependency.pri)
include(creator_dependency.pri)
include(benchmark_dependency.pri)
+requires(isEmpty(QTC_CLANG_BUILDMODE_MISMATCH))
+
OBJECTS_DIR = $$OUT_PWD/obj # workaround for qmake bug in object_parallel_to_source
!msvc:force_debug_info:QMAKE_CXXFLAGS += -fno-omit-frame-pointer