Skip to content

Commit 7499a6b

Browse files
authored
Resolve make: *** No rule to make target ggml-metal.m', needed by ggml-metal.o'. Stop error on macOS Metal (ggml-org#957)
1 parent b1f9c97 commit 7499a6b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,7 @@ ifdef LLAMA_METAL
271271
LDFLAGS += -framework Foundation -framework Metal -framework MetalKit -framework MetalPerformanceShaders
272272
OBJS += ggml-metal.o
273273

274-
ggml-metal.o: ggml-metal.m ggml-metal.h
274+
ggml-metal.o: ggml/src/ggml-metal.m ggml/include/ggml-metal.h
275275
@echo "== Preparing merged Metal file =="
276276
@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
277277
$(CC) $(CFLAGS) -c $< -o $@

0 commit comments

Comments
 (0)