From 6fe31d14771bec9c9e0a7f425fc85394c9fcd877 Mon Sep 17 00:00:00 2001 From: Arseny Kapoulkine Date: Sun, 29 Oct 2017 21:24:04 -0700 Subject: build: Simplify config=sanitize These days OSX clang supports UB sanitizer so we can just use the same settings for all systems. --- Makefile | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) (limited to 'Makefile') 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) -- cgit v1.2.3