From 2a11f16c0ffee07a128aeb92ad534650fcec161c Mon Sep 17 00:00:00 2001 From: Ettore Di Giacinto Date: Sun, 11 Jun 2023 01:07:39 +0200 Subject: [PATCH] fix: copy metal file from build (#564) --- .gitignore | 4 +++- Makefile | 3 +++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index d1a7f14..8ad9f22 100644 --- a/.gitignore +++ b/.gitignore @@ -27,4 +27,6 @@ release/ .idea # Generated during build -backend-assets/ \ No newline at end of file +backend-assets/ + +/ggml-metal.metal \ No newline at end of file diff --git a/Makefile b/Makefile index 6106ef6..cf76382 100644 --- a/Makefile +++ b/Makefile @@ -219,6 +219,9 @@ build: prepare ## Build the project $(info ${GREEN}I BUILD_TYPE: ${YELLOW}$(BUILD_TYPE)${RESET}) $(info ${GREEN}I GO_TAGS: ${YELLOW}$(GO_TAGS)${RESET}) CGO_LDFLAGS="$(CGO_LDFLAGS)" C_INCLUDE_PATH=${C_INCLUDE_PATH} LIBRARY_PATH=${LIBRARY_PATH} $(GOCMD) build -ldflags "$(LD_FLAGS)" -tags "$(GO_TAGS)" -o $(BINARY_NAME) ./ +ifeq ($(BUILD_TYPE),metal) + cp go-llama/build/bin/ggml-metal.metal . +endif dist: build mkdir -p release