Use ASan and UBSan in debug builds.
This commit is contained in:
parent
b736e3bc8e
commit
f34df0b8a2
1 changed files with 6 additions and 1 deletions
7
Makefile
7
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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue