build : enable libstdc++ assertions for debug builds (#4275)
This commit is contained in:
parent
03562f3a86
commit
511f52c334
2 changed files with 9 additions and 0 deletions
4
Makefile
4
Makefile
|
@ -174,6 +174,10 @@ ifdef LLAMA_DEBUG
|
|||
MK_CFLAGS += -O0 -g
|
||||
MK_CXXFLAGS += -O0 -g
|
||||
MK_LDFLAGS += -g
|
||||
|
||||
ifeq ($(UNAME_S),Linux)
|
||||
MK_CXXFLAGS += -Wp,-D_GLIBCXX_ASSERTIONS
|
||||
endif
|
||||
else
|
||||
MK_CPPFLAGS += -DNDEBUG
|
||||
endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue