aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Thompson <daniel.thompson@linaro.org>2022-05-11 16:36:35 +0100
committerDaniel Thompson <daniel.thompson@linaro.org>2022-05-11 16:37:14 +0100
commitedda51db73a3fb8d6f5f579110da0305dcd21cdb (patch)
treea7cd63c64c5f8e9973d10475d75975b430ee6073
parent1c3c00076bff4a7d48bba781fbb4dcf958bab9a7 (diff)
Makefile: Enable clang-tidy and clang-analyzer for gcc buildsmisc/compile_commands_for_gcc
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>
-rw-r--r--Makefile6
1 files changed, 0 insertions, 6 deletions
diff --git a/Makefile b/Makefile
index cf1e47076315..17691797de54 100644
--- a/Makefile
+++ b/Makefile
@@ -1892,17 +1892,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
# ---------------------------------------------------------------------------