From 854998edb8d076ade0ffe8adf710fca1e8239a2b Mon Sep 17 00:00:00 2001 From: verdant Date: Wed, 22 Jul 2026 22:47:09 +0800 Subject: Add asan --- Makefile | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index d842b7b..ff89d65 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,9 @@ CC=gcc -CFLAGS=-Wall -Wextra -Wpedantic -g -LDFLAGS=-lncurses +#CFLAGS=-Wall -Wextra -Wpedantic -g +#LDFLAGS=-lncurses + +CFLAGS = -Wall -Wextra -Wpedantic -g -fsanitize=address +LDFLAGS = -lncurses -fsanitize=address TARGET=sf @@ -23,3 +26,4 @@ test: $(TARGET) clean: rm -f $(OBJS) $(TARGET) + rm ./asan.log* -- cgit v1.2.3