NDEBUG stands for NO DEBUG...

This commit is contained in:
Vassil Vassilev 2013-06-26 14:56:11 +02:00 committed by sftnight
parent cb3f3c3bae
commit 65ce06c373
2 changed files with 6 additions and 2 deletions

View File

@ -59,9 +59,13 @@ CLINGLDFLAGSEXTRA := -Wl,--no-ctors-in-init-array
endif
# Define NDEBUG for consistency with llvm and clang.
CLINGCXXNDEBUG := -DNDEBUG
ifeq ($(ROOTBUILD),debug)
CLINGCXXFLAGS += -DNDEBUG
ifneq($(LLVMDEV),)
CLINGCXXNDEBUG :=
endif
endif
CLINGCXXFLAGS += $(CLINGCXXNDEBUG)
ifeq ($(ARCH),win32gcc)
# Hide llvm / clang symbols:

View File

@ -75,7 +75,7 @@ namespace cling {
if (!m_DeclQueue)
m_DeclQueue.reset(new DeclQueue());
#ifdef NDEBUG
#ifndef NDEBUG
// Check for duplicates
for (size_t i = 0, e = m_DeclQueue->size(); i < e; ++i)
assert((*m_DeclsQueue)[i] != DCI && "Duplicates?!");