mirror of
https://github.com/LostRuins/koboldcpp.git
synced 2026-05-08 01:41:37 +00:00
Resolve make: *** No rule to make target ggml-metal.m', needed by ggml-metal.o'. Stop error on macOS Metal (#957)
This commit is contained in:
parent
b1f9c97a0b
commit
7499a6bd4b
1 changed files with 1 additions and 1 deletions
2
Makefile
2
Makefile
|
|
@ -271,7 +271,7 @@ ifdef LLAMA_METAL
|
|||
LDFLAGS += -framework Foundation -framework Metal -framework MetalKit -framework MetalPerformanceShaders
|
||||
OBJS += ggml-metal.o
|
||||
|
||||
ggml-metal.o: ggml-metal.m ggml-metal.h
|
||||
ggml-metal.o: ggml/src/ggml-metal.m ggml/include/ggml-metal.h
|
||||
@echo "== Preparing merged Metal file =="
|
||||
@sed -e '/#include "ggml-common.h"/r ggml/src/ggml-common.h' -e '/#include "ggml-common.h"/d' < ggml/src/ggml-metal.metal > ggml/src/ggml-metal-merged.metal
|
||||
$(CC) $(CFLAGS) -c $< -o $@
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue