Add config=sanitize support to Makefile
This commit is contained in:
parent
59ce480f96
commit
107239c927
1 changed files with 5 additions and 0 deletions
5
Makefile
5
Makefile
|
@ -25,6 +25,11 @@ ifeq ($(config),coverage)
|
|||
LDFLAGS+=-fprofile-arcs
|
||||
endif
|
||||
|
||||
ifeq ($(config),sanitize)
|
||||
CXXFLAGS+=-fsanitize=address -fsanitize=undefined -fno-sanitize=vptr
|
||||
LDFLAGS+=-fsanitize=address -fsanitize=undefined
|
||||
endif
|
||||
|
||||
ifneq ($(defines),standard)
|
||||
COMMA=,
|
||||
CXXFLAGS+=-D $(subst $(COMMA), -D ,$(defines))
|
||||
|
|
Loading…
Add table
Reference in a new issue