Enable _GLIBCXX_ASSERTIONS in debug compile mode in Linux/UNIX.

This commit is contained in:
Stephen Anthony 2022-05-29 18:41:52 -02:30
parent 749bf98ad2
commit 9bd3a0a601
1 changed files with 2 additions and 3 deletions

View File

@ -21,7 +21,6 @@
srcdir ?= . srcdir ?= .
# -Wp,-D_GLIBCXX_ASSERTIONS
DEFINES := -DSDL_SUPPORT -D_GLIBCXX_USE_CXX11_ABI=1 DEFINES := -DSDL_SUPPORT -D_GLIBCXX_USE_CXX11_ABI=1
LDFLAGS := -pthread LDFLAGS := -pthread
INCLUDES := INCLUDES :=
@ -80,8 +79,8 @@ ifdef PROFILE
endif endif
ifdef DEBUG ifdef DEBUG
CXXFLAGS += -g CXXFLAGS += -g -Wp,-D_GLIBCXX_ASSERTIONS
CFLAGS += -g CFLAGS += -g -Wp,-D_GLIBCXX_ASSERTIONS
else else
ifdef HAVE_GCC ifdef HAVE_GCC
CXXFLAGS+= -fomit-frame-pointer CXXFLAGS+= -fomit-frame-pointer