mirror of
https://github.com/mudler/LocalAI.git
synced 2024-12-18 20:27:57 +00:00
fix: copy metal file from build (#564)
This commit is contained in:
parent
2297504fb3
commit
2a11f16c0f
2
.gitignore
vendored
2
.gitignore
vendored
@ -28,3 +28,5 @@ release/
|
|||||||
|
|
||||||
# Generated during build
|
# Generated during build
|
||||||
backend-assets/
|
backend-assets/
|
||||||
|
|
||||||
|
/ggml-metal.metal
|
3
Makefile
3
Makefile
@ -219,6 +219,9 @@ build: prepare ## Build the project
|
|||||||
$(info ${GREEN}I BUILD_TYPE: ${YELLOW}$(BUILD_TYPE)${RESET})
|
$(info ${GREEN}I BUILD_TYPE: ${YELLOW}$(BUILD_TYPE)${RESET})
|
||||||
$(info ${GREEN}I GO_TAGS: ${YELLOW}$(GO_TAGS)${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) ./
|
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
|
dist: build
|
||||||
mkdir -p release
|
mkdir -p release
|
||||||
|
Loading…
Reference in New Issue
Block a user