LLAMA_DEBUG adds debug symbols

This commit is contained in:
JohannesGaessler 2023-05-27 21:28:08 +02:00
parent 0df7d63e5b
commit 6dea8d9f2e

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