projects
/
open-adventure.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Use ASan and UBSan in debug builds.
[open-adventure.git]
/
Makefile
diff --git
a/Makefile
b/Makefile
index a3535321be7aa31d4f0bdd3a630c007c44ea1058..ed13d890f47ef9d5251dc1c8448c9e0b918dbf42 100644
(file)
--- a/
Makefile
+++ b/
Makefile
@@
-117,7
+117,12
@@
linty: CCFLAGS += -Winit-self
linty: CCFLAGS += -Wpointer-arith
linty: advent cheat
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
debug: linty
CSUPPRESSIONS = --suppress=missingIncludeSystem --suppress=invalidscanf