@@ -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
# ---------------------------------------------------------------------------
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(-)