From 7d749cc787d1c98de836f6c8ce15b27b7505e678 Mon Sep 17 00:00:00 2001 From: Jeffrey Morgan Date: Mon, 11 Sep 2023 16:31:46 -0400 Subject: [PATCH] fix darwin build script --- scripts/build_darwin.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/build_darwin.sh b/scripts/build_darwin.sh index e0bbf02d..24217b1d 100755 --- a/scripts/build_darwin.sh +++ b/scripts/build_darwin.sh @@ -8,7 +8,7 @@ GO_LDFLAGS="$GO_LDFLAGS -X github.com/jmorganca/ollama/server.mode=release" # build universal binary GOARCH=arm64 go generate ./... GOARCH=arm64 go build -ldflags "$GO_LDFLAGS" -o dist/ollama-darwin-arm64 -rm -rf llm/llama.cpp/ggml/build/*/bin +rm -rf llm/llama.cpp/*/build/*/bin GOARCH=amd64 go generate ./... GOARCH=amd64 go build -ldflags "$GO_LDFLAGS" -o dist/ollama-darwin-amd64 lipo -create -output dist/ollama dist/ollama-darwin-arm64 dist/ollama-darwin-amd64