From 395efb9c8a0a0160a7b95769e9484bae5548bbde Mon Sep 17 00:00:00 2001 From: Kimplul Date: Sat, 17 Aug 2024 20:47:33 +0300 Subject: add analyzer and fix some reported issues --- scripts/makefile | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) (limited to 'scripts') diff --git a/scripts/makefile b/scripts/makefile index e247e7a..75631b7 100644 --- a/scripts/makefile +++ b/scripts/makefile @@ -32,9 +32,14 @@ OBJCOPY != [ "$(LLVM)" != "0" ] \ && echo llvm-objcopy \ || echo $(CROSS_COMPILE)objcopy -COMPILER != [ "$(LLVM)" != "0" ] \ - && echo clang --target="$(CROSS_COMPILE)" \ - || echo $(CROSS_COMPILE)gcc +COMPILER != [ -n "$(CROSS_COMPILE)" ] \ + && { \ + [ "$(LLVM)" != "0" ] \ + && echo clang --target="$(CROSS_COMPILE)" \ + || echo $(CROSS_COMPILE)gcc \ + ; \ + } \ + || echo $(CC) OBFLAGS := -g @@ -60,10 +65,10 @@ COMPILE_EK = $(COMPILE) $(EK_FLAGS) -include deps.mk -ek: $(EK_OBJS) - $(COMPILE_EK) $(EK_OBJS) -o $@ +ek: $(EK_OBJS) build/gen/parser.o + $(COMPILE_EK) $(EK_OBJS) build/gen/parser.o -o $@ # might lint some common things twice .PHONY: -lint: $(TRISCV_LINTS) +lint: $(EK_LINTS) -- cgit v1.3