From edb49d3dc2e3a2bd3048cfdb55562fb853f37a21 Mon Sep 17 00:00:00 2001 From: Sergey Sharybin Date: Fri, 3 Jul 2020 10:56:10 +0200 Subject: [PATCH] Clang-Tidy: Allow use with GCC but warn about possible failure The compilation using GCC + Clang-Tidy succeeded for me and Sybren (with some linker caveats for Sybren) but seems that it is doable to make GCC + Clang-Tidy to officially work for Blender. Now it should be possible to enable Clang-Tidy doing something like make developer debug BUILD_CMAKE_ARGS='-DWITH_CLANG_TIDY=ON' --- source/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/CMakeLists.txt b/source/CMakeLists.txt index c460a5e340b..88c19355960 100644 --- a/source/CMakeLists.txt +++ b/source/CMakeLists.txt @@ -24,7 +24,7 @@ endif() if(WITH_CLANG_TIDY) if(NOT CMAKE_C_COMPILER_ID MATCHES "Clang") - message(FATAL_ERROR "Currently Clang-Tidy is only supported when using Clang compiler") + message(WARNING "Currently Clang-Tidy might fail with GCC toolchain, switch to Clang toolchain if that happens") endif() find_package(ClangTidy REQUIRED)