Skip to content

Commit

Permalink
build: Simplify config=sanitize
Browse files Browse the repository at this point in the history
These days OSX clang supports UB sanitizer so we can just use the same
settings for all systems.
  • Loading branch information
zeux committed Oct 30, 2017
1 parent 0504fa4 commit 6fe31d1
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 6fe31d1

Please sign in to comment.