From f34df0b8a224d371420da98a55c47e33acec0288 Mon Sep 17 00:00:00 2001 From: "Jason S. Ninneman" Date: Fri, 14 Jul 2017 20:19:54 -0700 Subject: [PATCH] Use ASan and UBSan in debug builds. --- Makefile | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index a353532..ed13d89 100644 --- a/Makefile +++ b/Makefile @@ -117,7 +117,12 @@ linty: CCFLAGS += -Winit-self linty: CCFLAGS += -Wpointer-arith linty: advent cheat -debug: CCFLAGS += -O0 --coverage -ggdb -U_FORTIFY_SOURCE +debug: CCFLAGS += -O0 +debug: CCFLAGS += --coverage +debug: CCFLAGS += -ggdb +debug: CCFLAGS += -U_FORTIFY_SOURCE +debug: CCFLAGS += -fsanitize=address +debug: CCFLAGS += -fsanitize=undefined debug: linty CSUPPRESSIONS = --suppress=missingIncludeSystem --suppress=invalidscanf -- 2.31.1