aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile8
1 files changed, 5 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index bdf1afb..46d01fd 100644
--- a/Makefile
+++ b/Makefile
@@ -1,6 +1,6 @@
target = fvm
-cflags = -g -O3
-ldflags = -lm
+cflags = -g -fsanitize=address -fno-omit-frame-pointer
+ldflags = -lm -fsanitize=address -fno-omit-frame-pointer
cc = gcc
csc = chicken-csc
@@ -19,7 +19,9 @@ full: all $(tests_bin)
$(target): $(obj) src/main.o
$(cc) $(cflags) $(ldflags) -o $@ $^
-test: $(tests_bin)
+buildtest: $(tests_bin)
+
+test: buildtest
@echo
@echo "Run tests:"
@scripts/runall.sh $^