[PR #459] [MERGED] generate binary dependencies based on GOARCH on macos #10161

Closed
opened 2026-04-12 22:53:08 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ollama/ollama/pull/459
Author: @jmorganca
Created: 9/2/2023
Status: Merged
Merged: 9/5/2023
Merged by: @jmorganca

Base: mainHead: arch


📝 Commits (1)

  • d8b4578 generate binary dependencies based on GOARCH on macos

📊 Changes

4 files changed (+16 additions, -6 deletions)

View changed files

📝 llm/llama.cpp/generate.go (+3 -0)
llm/llama.cpp/generate_darwin_amd64.go (+8 -0)
📝 llm/llama.cpp/generate_darwin_arm64.go (+1 -4)
📝 scripts/build_darwin.sh (+4 -2)

📄 Description

This will allow building a universal binary (or cross compiling for amd64) on arm64 Macs:

% GOARCH=amd64 go generate ./...
% GOARCH=amd64 go build .
% file ./ollama
./ollama: Mach-O 64-bit executable x86_64

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/ollama/ollama/pull/459 **Author:** [@jmorganca](https://github.com/jmorganca) **Created:** 9/2/2023 **Status:** ✅ Merged **Merged:** 9/5/2023 **Merged by:** [@jmorganca](https://github.com/jmorganca) **Base:** `main` ← **Head:** `arch` --- ### 📝 Commits (1) - [`d8b4578`](https://github.com/ollama/ollama/commit/d8b457874aaa60479d89588b976392b03dbec12f) generate binary dependencies based on GOARCH on macos ### 📊 Changes **4 files changed** (+16 additions, -6 deletions) <details> <summary>View changed files</summary> 📝 `llm/llama.cpp/generate.go` (+3 -0) ➕ `llm/llama.cpp/generate_darwin_amd64.go` (+8 -0) 📝 `llm/llama.cpp/generate_darwin_arm64.go` (+1 -4) 📝 `scripts/build_darwin.sh` (+4 -2) </details> ### 📄 Description This will allow building a universal binary (or cross compiling for `amd64`) on `arm64` Macs: ``` % GOARCH=amd64 go generate ./... % GOARCH=amd64 go build . % file ./ollama ./ollama: Mach-O 64-bit executable x86_64 ``` --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-04-12 22:53:08 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#10161