]> git.djapps.eu Git - pkg/ggml/sources/llama.cpp/commitdiff
LLAMA_DEBUG adds debug symbols (#1617)
authorJohannes Gäßler <redacted>
Sun, 28 May 2023 19:01:02 +0000 (21:01 +0200)
committerGitHub <redacted>
Sun, 28 May 2023 19:01:02 +0000 (21:01 +0200)
Makefile

index 70bd5e90af9d86db3117d3756b1dd17b1ef4f3f3..8e8d426c5d6bf5b32b74c6657d36b25f5bd9008d 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -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