build : enable libstdc++ assertions for debug builds (#4275)

This commit is contained in:
Jared Van Bortel authored and GitHub committed 2023-12-01 20:18:35 +02:00
1 parent 03562f3a86
commit 511f52c334
2 files changed
+9

No files matched your search

+4
View File
@@ -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