diff options
author | Marco Bubke <marco.bubke@qt.io> | 2020-09-01 11:09:55 +0200 |
---|---|---|
committer | Marco Bubke <marco.bubke@qt.io> | 2020-09-03 07:32:18 +0000 |
commit | bfd8be99bef12b256fe54b97aa5fdfaf3e4d901d (patch) | |
tree | 23e6bdf14335a6fda2c08a4721aa3e29f888c2df /tests | |
parent | d6da7745faffe25b8261e96ae0875b25d9799a2b (diff) |
UnitTests: Fix unit test build
Guard clang include.
Change-Id: Ia72b40fa787918f47508049b045a21edf976d93a
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/unit/unittest/conditionally-disabled-tests.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/unit/unittest/conditionally-disabled-tests.h b/tests/unit/unittest/conditionally-disabled-tests.h index 91b2541fe9..79b24e3d20 100644 --- a/tests/unit/unittest/conditionally-disabled-tests.h +++ b/tests/unit/unittest/conditionally-disabled-tests.h @@ -25,6 +25,7 @@ #include <QtGlobal> +#ifdef CLANG_UNIT_TESTS #include <clang-c/Index.h> #if CINDEX_VERSION_MAJOR == 0 && CINDEX_VERSION_MINOR == 59 @@ -32,6 +33,7 @@ #else # define DISABLED_FOR_CLANG_10(x) x #endif +#endif #ifdef Q_OS_WIN # define DISABLED_ON_WINDOWS(x) DISABLED_##x |