From 289cea18e121220960db6346932277f97293bfda Mon Sep 17 00:00:00 2001 From: Jacob Heider Date: Mon, 23 Dec 2024 16:24:19 -0500 Subject: [PATCH] fix(ollama) closes #8183 closes #8190 closes #8208 --- projects/ollama.ai/package.yml | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/projects/ollama.ai/package.yml b/projects/ollama.ai/package.yml index 1a7346e874..d27be8fed8 100644 --- a/projects/ollama.ai/package.yml +++ b/projects/ollama.ai/package.yml @@ -23,8 +23,14 @@ build: - run: sed -i 's/-D__ARM_FEATURE_MATMUL_INT8//g' llama.go working-directory: llama if: '>=0.4.0' - - go generate ./... - - go build -ldflags="$GO_LDFLAGS" -o '{{prefix}}/bin/ollama' . + - run: + - go generate ./... + - go build -ldflags="$GO_LDFLAGS" -o '{{prefix}}/bin/ollama' . + if: <0.5.2 + - run: + - make dist -j {{hw.concurrency}} + - install -D dist/{{hw.platform}}-*/bin/ollama '{{prefix}}/bin/ollama' + if: '>=0.5.2' env: GO_LDFLAGS: # versions older than 0.1.30 @@ -35,6 +41,8 @@ build: GO_LDFLAGS: # else segfaults - -buildmode=pie + CGO_LDFLAGS: + - -lstdc++fs provides: - bin/ollama