Enable GCC debug when in debug build

This commit is contained in:
Wilson Snyder 2018-03-03 20:43:14 -05:00
parent ef3c7bb6a2
commit aed3307214
2 changed files with 6 additions and 2 deletions

View File

@ -78,7 +78,7 @@ ifeq ($(VL_DEBUG),)
COPT = -O2
else
# Debug
COPT = -ggdb -DVL_DEBUG
COPT = -ggdb -DVL_DEBUG -D_GLIBCXX_DEBUG
# Debug & Profile:
#LDFLAGS += -pg -g
#COPT = -ggdb -pg -g

View File

@ -28,8 +28,12 @@ VPATH += ../../$(VM_USER_DIR)
# Needed by DPI tests
CPPFLAGS += -DVERILATOR=1
# Needed by tracing routines
# Debugging
CPPFLAGS += -DVL_DEBUG=1
# Assertions disabled as SystemC libraries are not clean
#CPPFLAGS += -D_GLIBCXX_DEBUG
# Needed by tracing routines
CPPFLAGS += -DVM_PREFIX=$(VM_PREFIX)
CPPFLAGS += -DVM_PREFIX_INCLUDE="<$(VM_PREFIX).h>"
CPPFLAGS += $(CPPFLAGS_DRIVER)