[Bf-blender-cvs] [edb49d3dc2e] master: Clang-Tidy: Allow use with GCC but warn about possible failure
Sergey Sharybin
noreply at git.blender.org
Fri Jul 3 10:58:47 CEST 2020
Commit: edb49d3dc2e3a2bd3048cfdb55562fb853f37a21
Author: Sergey Sharybin
Date: Fri Jul 3 10:56:10 2020 +0200
Branches: master
https://developer.blender.org/rBedb49d3dc2e3a2bd3048cfdb55562fb853f37a21
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'
===================================================================
M source/CMakeLists.txt
===================================================================
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)
More information about the Bf-blender-cvs
mailing list