summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArseny Kapoulkine <arseny.kapoulkine@gmail.com>2017-10-29 21:24:04 -0700
committerArseny Kapoulkine <arseny.kapoulkine@gmail.com>2017-10-29 21:24:04 -0700
commit6fe31d14771bec9c9e0a7f425fc85394c9fcd877 (patch)
tree290e9ec85859c89e17104c93f5cf5dabd748c8cd
parent0504fa4e90e0024ff612fdfdf740ef7826191ebe (diff)
build: Simplify config=sanitize
These days OSX clang supports UB sanitizer so we can just use the same settings for all systems.
-rw-r--r--Makefile9
1 files changed, 2 insertions, 7 deletions
diff --git a/Makefile b/Makefile
index edc3c42..fcb7158 100644
--- a/Makefile
+++ b/Makefile
@@ -27,13 +27,8 @@ ifeq ($(config),coverage)
endif
ifeq ($(config),sanitize)
- CXXFLAGS+=-fsanitize=address
- LDFLAGS+=-fsanitize=address
-
- ifneq ($(shell uname),Darwin)
- CXXFLAGS+=-fsanitize=undefined
- LDFLAGS+=-fsanitize=undefined
- endif
+ CXXFLAGS+=-fsanitize=address,undefined
+ LDFLAGS+=-fsanitize=address,undefined
endif
ifeq ($(config),analyze)