aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorverdant <im@verdant.ee>2026-07-22 22:47:09 +0800
committerverdant <im@verdant.ee>2026-07-22 22:47:09 +0800
commit854998edb8d076ade0ffe8adf710fca1e8239a2b (patch)
tree99accd9b70bde1ee5a49280a74515f7251158696 /Makefile
parent541e92b81ee1b5973c4e9c003821d79a6c6f9b47 (diff)
downloadsf-854998edb8d076ade0ffe8adf710fca1e8239a2b.tar.gz
sf-854998edb8d076ade0ffe8adf710fca1e8239a2b.zip
Add asan
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile8
1 files 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*