mirror of
https://github.com/ggerganov/llama.cpp.git
synced 2024-12-24 18:34:36 +00:00
LLAMA_DEBUG adds debug symbols (#1617)
This commit is contained in:
parent
1b78ed2081
commit
3b126f654f
6
Makefile
6
Makefile
@ -44,7 +44,11 @@ CFLAGS = -I. -O3 -std=c11 -fPIC
|
|||||||
CXXFLAGS = -I. -I./examples -O3 -std=c++11 -fPIC
|
CXXFLAGS = -I. -I./examples -O3 -std=c++11 -fPIC
|
||||||
LDFLAGS =
|
LDFLAGS =
|
||||||
|
|
||||||
ifndef LLAMA_DEBUG
|
ifdef LLAMA_DEBUG
|
||||||
|
CFLAGS += -O0 -g
|
||||||
|
CXXFLAGS += -O0 -g
|
||||||
|
LDFLAGS += -g
|
||||||
|
else
|
||||||
CFLAGS += -DNDEBUG
|
CFLAGS += -DNDEBUG
|
||||||
CXXFLAGS += -DNDEBUG
|
CXXFLAGS += -DNDEBUG
|
||||||
endif
|
endif
|
||||||
|
Loading…
Reference in New Issue
Block a user