From: Jason S. Ninneman Date: Sat, 15 Jul 2017 03:19:54 +0000 (-0700) Subject: Use ASan and UBSan in debug builds. X-Git-Tag: 1.3~58 X-Git-Url: https://jxself.org/git/?a=commitdiff_plain;h=f34df0b8a224d371420da98a55c47e33acec0288;p=open-adventure.git Use ASan and UBSan in debug builds. --- 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