Add config=sanitize support to Makefile
This commit is contained in:
parent
59ce480f96
commit
107239c927
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…
Reference in New Issue
Block a user