Skip to content

Commit

Permalink
fix(ollama)
Browse files Browse the repository at this point in the history
 closes #8183

 closes #8190

 closes #8208
  • Loading branch information
jhheider committed Dec 23, 2024
1 parent 31c0a45 commit 289cea1
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions projects/ollama.ai/package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -35,6 +41,8 @@ build:
GO_LDFLAGS:
# else segfaults
- -buildmode=pie
CGO_LDFLAGS:
- -lstdc++fs

provides:
- bin/ollama
Expand Down

0 comments on commit 289cea1

Please sign in to comment.