From db21bad936a761f475145886f1e06dfcfa11eb80 Mon Sep 17 00:00:00 2001 From: Kai Koehne Date: Wed, 19 Aug 2020 14:05:29 +0200 Subject: Port headersclean check to CMake Configure Qt with -DQT_FEATURE_headersclean=ON to enable the check. There will be separate target for each module include (e.g. QtCore_header_check), but the check will also be done when the module is built for the first time. There are notable differences to the qmake version: - the build does not pick up anymore default defines or flags from the module, or Qt. Instead options like -fPIC they have to be listed explicitly. Also for this reason, we have to skip the vulkan-related headers from the check, since vulkan/vulkan.h is not necessarily in the compiler's default search path. - some checks for nowadays unsupported compiler versions are removed. - -Wdouble-promotion -Wshorten-64-to-32 is not added for clang builds; the qmake code path did never enforce that on CI machines (it was non-Apple clang only), and the check currently fails on these configurations. Fixes: QTBUG-82615 Change-Id: I1cd303677b1472116910b6c27748f96436feb35e Reviewed-by: Alexandru Croitor --- src/gui/vulkan/qvulkaninstance.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/gui/vulkan/qvulkaninstance.h') diff --git a/src/gui/vulkan/qvulkaninstance.h b/src/gui/vulkan/qvulkaninstance.h index ed3a4a002e..698285d12e 100644 --- a/src/gui/vulkan/qvulkaninstance.h +++ b/src/gui/vulkan/qvulkaninstance.h @@ -44,6 +44,7 @@ #if 0 #pragma qt_no_master_include +#pragma qt_sync_skip_header_check #endif #if QT_CONFIG(vulkan) || defined(Q_CLANG_QDOC) -- cgit v1.2.3