From 7969c9218ccb947f564122582c5bbd65558c32c1 Mon Sep 17 00:00:00 2001 From: aintea Date: Mon, 29 Jun 2026 01:16:05 +0300 Subject: [PATCH] chore: add debug symbols and memory leak detection --- Makefile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 021491e..51f5ef0 100644 --- a/Makefile +++ b/Makefile @@ -27,7 +27,11 @@ CFLAGS += $(shell pkg-config --cflags luajit) -I./include -Wno-format-truncatio default: pkgit pkgit: $(OBJS) - ${CC} -o $@ $^ $(shell pkg-config --libs luajit) + ${CC} -o $@ $^ $(shell pkg-config --libs luajit) $(LDFLAGS) + +debug: CFLAGS += -fsanitize=address -g3 +debug: LDFLAGS += -fsanitize=address +debug: pkgit $(OBJDIR): @mkdir -p $(OBJDIR) -- 2.54.0