build: Simplify config=sanitize

These days OSX clang supports UB sanitizer so we can just use the same
settings for all systems.
This commit is contained in:
Arseny Kapoulkine 2017-10-29 21:24:04 -07:00
parent 0504fa4e90
commit 6fe31d1477

View File

@ -27,13 +27,8 @@ ifeq ($(config),coverage)
endif endif
ifeq ($(config),sanitize) ifeq ($(config),sanitize)
CXXFLAGS+=-fsanitize=address CXXFLAGS+=-fsanitize=address,undefined
LDFLAGS+=-fsanitize=address LDFLAGS+=-fsanitize=address,undefined
ifneq ($(shell uname),Darwin)
CXXFLAGS+=-fsanitize=undefined
LDFLAGS+=-fsanitize=undefined
endif
endif endif
ifeq ($(config),analyze) ifeq ($(config),analyze)