mirror of
https://github.com/ggerganov/llama.cpp.git
synced 2024-12-26 03:14:35 +00:00
make : fix CPPFLAGS (#3035)
This commit is contained in:
parent
15b67a66c2
commit
5ffab089a5
9
Makefile
9
Makefile
@ -91,8 +91,8 @@ else
|
|||||||
OPT = -O3
|
OPT = -O3
|
||||||
endif
|
endif
|
||||||
MK_CPPFLAGS = -I. -Icommon
|
MK_CPPFLAGS = -I. -Icommon
|
||||||
MK_CFLAGS = $(CPPFLAGS) $(OPT) -std=c11 -fPIC
|
MK_CFLAGS = $(OPT) -std=c11 -fPIC
|
||||||
MK_CXXFLAGS = $(CPPFLAGS) $(OPT) -std=c++11 -fPIC
|
MK_CXXFLAGS = $(OPT) -std=c++11 -fPIC
|
||||||
MK_LDFLAGS =
|
MK_LDFLAGS =
|
||||||
|
|
||||||
ifdef LLAMA_DEBUG
|
ifdef LLAMA_DEBUG
|
||||||
@ -381,9 +381,8 @@ k_quants.o: k_quants.c k_quants.h
|
|||||||
endif # LLAMA_NO_K_QUANTS
|
endif # LLAMA_NO_K_QUANTS
|
||||||
|
|
||||||
# combine build flags with cmdline overrides
|
# combine build flags with cmdline overrides
|
||||||
override CPPFLAGS := $(MK_CPPFLAGS) $(CPPFLAGS)
|
override CFLAGS := $(MK_CPPFLAGS) $(CPPFLAGS) $(MK_CFLAGS) $(CFLAGS)
|
||||||
override CFLAGS := $(MK_CFLAGS) $(CFLAGS)
|
override CXXFLAGS := $(MK_CPPFLAGS) $(CPPFLAGS) $(MK_CXXFLAGS) $(CXXFLAGS)
|
||||||
override CXXFLAGS := $(MK_CXXFLAGS) $(CXXFLAGS)
|
|
||||||
override LDFLAGS := $(MK_LDFLAGS) $(LDFLAGS)
|
override LDFLAGS := $(MK_LDFLAGS) $(LDFLAGS)
|
||||||
|
|
||||||
#
|
#
|
||||||
|
Loading…
Reference in New Issue
Block a user