diff options
author | Arseny Kapoulkine <arseny.kapoulkine@gmail.com> | 2015-05-12 20:57:57 -0700 |
---|---|---|
committer | Arseny Kapoulkine <arseny.kapoulkine@gmail.com> | 2015-05-12 20:57:57 -0700 |
commit | 107239c9275c2f410e5635555805a4c982b5469b (patch) | |
tree | 7faae3b2e9adc3400c2a4a3aff3392466ccf1373 | |
parent | 59ce480f9663cf662a1dd2e5e74ddc6f1d5de22e (diff) |
Add config=sanitize support to Makefile
-rw-r--r-- | Makefile | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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)) |