add sanitize option if DEBUG=1

dev
MITSUNARI Shigeo 8 years ago
parent 36db42475e
commit a0dfc38289
  1. 6
      common.mk

@ -31,8 +31,10 @@ AR=ar r
MKDIR=mkdir -p
RM=rm -rf
ifneq ($(DEBUG),1)
ifeq ($(DEBUG),1)
CFLAGS+=-fsanitize=address
LDFLAGS+=-fsanitize=address
else
CFLAGS_OPT+=-fomit-frame-pointer -DNDEBUG
ifeq ($(CXX),clang++)
CFLAGS_OPT+=-O3

Loading…
Cancel
Save