diff mbox series

[2/2] Makefile: Enable clang-tidy and clang-analyzer for gcc builds

Message ID 20220628122741.93641-3-daniel.thompson@linaro.org (mailing list archive)
State New, archived
Headers show
Series Enable clang tools for kernels build using gcc | expand

Commit Message

Daniel Thompson June 28, 2022, 12:27 p.m. UTC
It is now possible use clang-tidy and clang-analyzer even if your primary
compiler is gcc. Remove the checks that prevent gcc builds from using
these tools.

Signed-off-by: Daniel Thompson <daniel.thompson@linaro.org>
---
 Makefile | 6 ------
 1 file changed, 6 deletions(-)
diff mbox series

Patch

diff --git a/Makefile b/Makefile
index 9ea6867aaf9c..0afef56d8203 100644
--- a/Makefile
+++ b/Makefile
@@ -1901,17 +1901,11 @@  targets += $(extmod_prefix)compile_commands.json
 
 PHONY += clang-tidy clang-analyzer
 
-ifdef CONFIG_CC_IS_CLANG
 quiet_cmd_clang_tools = CHECK   $<
       cmd_clang_tools = $(PYTHON3) $(srctree)/scripts/clang-tools/run-clang-tools.py $@ $<
 
 clang-tidy clang-analyzer: $(extmod_prefix)compile_commands.json
 	$(call cmd,clang_tools)
-else
-clang-tidy clang-analyzer:
-	@echo "$@ requires CC=clang" >&2
-	@false
-endif
 
 # Scripts to check various things for consistency
 # ---------------------------------------------------------------------------