Skip to content

Commit 6db44e0

Browse files
committed
fix for ggml-org#2940
1 parent 78cd2d9 commit 6db44e0

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

Makefile

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,11 @@ ifdef LLAMA_SERVER_VERBOSE
7979
CXXFLAGS += -DSERVER_VERBOSE=$(LLAMA_SERVER_VERBOSE)
8080
endif
8181

82+
ifdef LLAMA_DISABLE_LOGS
83+
CFLAGS += -DLOG_DISABLE_LOGS
84+
CXXFLAGS += -DLOG_DISABLE_LOGS
85+
endif # LLAMA_DISABLE_LOGS
86+
8287
# warnings
8388
CFLAGS += -Wall -Wextra -Wpedantic -Wcast-qual -Wdouble-promotion -Wshadow -Wstrict-prototypes -Wpointer-arith \
8489
-Wmissing-prototypes -Werror=implicit-int
@@ -343,11 +348,6 @@ k_quants.o: k_quants.c k_quants.h
343348
$(CC) $(CFLAGS) -c $< -o $@
344349
endif # LLAMA_NO_K_QUANTS
345350

346-
ifdef LLAMA_DISABLE_LOGS
347-
CFLAGS += -DLOG_DISABLE_LOGS
348-
CXXFLAGS += -DLOG_DISABLE_LOGS
349-
endif # LLAMA_DISABLE_LOGS
350-
351351
#
352352
# Print build information
353353
#

0 commit comments

Comments
 (0)