LLAMA_DEBUG adds debug symbols (#1617)

This commit is contained in:
Johannes Gäßler 2023-05-28 21:01:02 +02:00 committed by GitHub
parent 0907ab79e4
commit e7b0672c25
1 changed files with 5 additions and 1 deletions

View File

@ -44,7 +44,11 @@ CFLAGS = -I. -O3 -std=c11 -fPIC
CXXFLAGS = -I. -I./examples -O3 -std=c++11 -fPIC
LDFLAGS =
ifndef LLAMA_DEBUG
ifdef LLAMA_DEBUG
CFLAGS += -O0 -g
CXXFLAGS += -O0 -g
LDFLAGS += -g
else
CFLAGS += -DNDEBUG
CXXFLAGS += -DNDEBUG
endif