Define NDEBUG for consistency with llvm and clang, when building ROOT in debug mode.

This commit is contained in:
Vassil Vassilev 2013-06-21 15:37:27 +02:00 committed by sftnight
parent ef0c731ecb
commit 49321363f7

View File

@ -58,6 +58,11 @@ ifeq ($(CTORSINITARRAY),yes)
CLINGLDFLAGSEXTRA := -Wl,--no-ctors-in-init-array
endif
# Define NDEBUG for consistency with llvm and clang.
ifeq ($(ROOTBUILD),debug)
CLINGCXXFLAGS += -DNDEBUG
endif
ifeq ($(ARCH),win32gcc)
# Hide llvm / clang symbols:
CLINGLDFLAGSEXTRA += -Wl,--exclude-libs,ALL