fix: copy metal file from build (#564)

This commit is contained in:
Ettore Di Giacinto 2023-06-11 01:07:39 +02:00 committed by GitHub
parent 2297504fb3
commit 2a11f16c0f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 1 deletions

4
.gitignore vendored
View File

@ -27,4 +27,6 @@ release/
.idea
# Generated during build
backend-assets/
backend-assets/
/ggml-metal.metal

View File

@ -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