Use ASan and UBSan in debug builds.

This commit is contained in:
Jason S. Ninneman 2017-07-14 20:19:54 -07:00 committed by Eric S. Raymond
parent b736e3bc8e
commit f34df0b8a2

View file

@ -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