From c3b43840431b059266df6c8fcc051598e38457ef Mon Sep 17 00:00:00 2001 From: Tavian Barnes Date: Sun, 18 Feb 2018 10:33:26 -0500 Subject: New 'sanitized' make target --- Makefile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 5dc7c16..b06345b 100644 --- a/Makefile +++ b/Makefile @@ -54,7 +54,10 @@ all: bfs bfs: bftw.o color.o dstring.o eval.o exec.o main.o mtab.o opt.o parse.o printf.o stat.o typo.o util.o $(CC) $(ALL_LDFLAGS) $^ -o $@ -release: CFLAGS := -O3 -flto $(WFLAGS) -DNDEBUG -g +sanitized: CFLAGS := -g $(WFLAGS) -fsanitize=address -fsanitize=undefined +sanitized: bfs + +release: CFLAGS := -g $(WFLAGS) -O3 -flto -DNDEBUG release: bfs %.o: %.c -- cgit v1.2.3