From a8574519fc1cd10410c7d5cb308c510bc083d409 Mon Sep 17 00:00:00 2001 From: Jacob Heider Date: Wed, 26 Jun 2024 18:26:06 -0400 Subject: [PATCH] fix(llama.cpp3240) closes #6526 --- projects/github.com/ggerganov/llama.cpp/package.yml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/projects/github.com/ggerganov/llama.cpp/package.yml b/projects/github.com/ggerganov/llama.cpp/package.yml index 53016050..0e61eb73 100644 --- a/projects/github.com/ggerganov/llama.cpp/package.yml +++ b/projects/github.com/ggerganov/llama.cpp/package.yml @@ -52,7 +52,14 @@ build: exit 1 fi install -D props/entrypoint.sh {{prefix}}/entrypoint.sh - install -D ggml-metal.metal {{prefix}}/bin/ggml-metal.metal + if test -f ggml-metal.metal; then + install -D ggml-metal.metal {{prefix}}/bin/ggml-metal.metal + elif test -f ggml/src/ggml-metal.metal; then + install -D ggml/src/ggml-metal.metal {{prefix}}/bin/ggml-metal.metal + else + echo "No ggml-metal.metal found" + exit 1 + fi - | mkdir -p {{prefix}}/share