From bd509c3aee89f0712c0d66bac9c2a59692d38af2 Mon Sep 17 00:00:00 2001 From: Kimplul Date: Sun, 18 Aug 2024 19:25:48 +0300 Subject: add analyzer + Apparently no issues :) --- scripts/makefile | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) (limited to 'scripts') diff --git a/scripts/makefile b/scripts/makefile index 7424204..9e0fba2 100644 --- a/scripts/makefile +++ b/scripts/makefile @@ -32,10 +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 WARNFLAGS := -Wall -Wextra @@ -60,8 +64,8 @@ COMPILE_QBT = $(COMPILE) $(QBT_FLAGS) -include deps.mk -qbt: $(QBT_OBJS) - $(COMPILE_QBT) $(QBT_OBJS) -o $@ +qbt: $(QBT_OBJS) build/gen/gen_parser.o + $(COMPILE_QBT) $(QBT_OBJS) build/gen/gen_parser.o -o $@ # might lint some common things twice .PHONY: -- cgit v1.3