[PR #3972] [MERGED] Add support for building on Windows ARM64 #58042

Closed
opened 2026-04-29 12:51:44 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ollama/ollama/pull/3972
Author: @hmartinez82
Created: 4/27/2024
Status: Merged
Merged: 4/28/2024
Merged by: @dhiltgen

Base: mainHead: win_arm64


📝 Commits (5)

  • 86e67fc Add import declaration for windows,arm64 to llm.go
  • 204349b Use architecture specific folders in the build script
  • b438d48 Use architecture specific folders in the generate script
  • 6d3152a Use architecture specific folders in installer script
  • 8a65717 Do not build AVX runners on ARM64

📊 Changes

4 files changed (+24 additions, -17 deletions)

View changed files

📝 app/ollama.iss (+2 -2)
📝 llm/generate/gen_windows.ps1 (+12 -8)
📝 llm/llm.go (+1 -0)
📝 scripts/build_windows.ps1 (+9 -7)

📄 Description

Part of #2589

  • Builds only the cpu runner for ARM64 Also, the existing CMake recipe already enables NEON and Armv8.2 extensions when ARM64 is detected.
  • I'll create another PR with build instructions. The main trick is that MSY2 has the CLANGARM64 environment that provides gcc aliases to Clang.

Maintainer changes are enabled. Feel free to adjust the changes to your liking.


🔄 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/3972 **Author:** [@hmartinez82](https://github.com/hmartinez82) **Created:** 4/27/2024 **Status:** ✅ Merged **Merged:** 4/28/2024 **Merged by:** [@dhiltgen](https://github.com/dhiltgen) **Base:** `main` ← **Head:** `win_arm64` --- ### 📝 Commits (5) - [`86e67fc`](https://github.com/ollama/ollama/commit/86e67fc4a97656ac008f70d267cb9f639c884fd3) Add import declaration for windows,arm64 to llm.go - [`204349b`](https://github.com/ollama/ollama/commit/204349b17bce5b00579ee2b40714dac1e84e032a) Use architecture specific folders in the build script - [`b438d48`](https://github.com/ollama/ollama/commit/b438d485f19f21419708e82a3131ef2585bc97f4) Use architecture specific folders in the generate script - [`6d3152a`](https://github.com/ollama/ollama/commit/6d3152a98aa59d6a5d54aa68e744e2fbd8b9dc7f) Use architecture specific folders in installer script - [`8a65717`](https://github.com/ollama/ollama/commit/8a65717f556b7fb1d72d5aa66fa99263ca3b8624) Do not build AVX runners on ARM64 ### 📊 Changes **4 files changed** (+24 additions, -17 deletions) <details> <summary>View changed files</summary> 📝 `app/ollama.iss` (+2 -2) 📝 `llm/generate/gen_windows.ps1` (+12 -8) 📝 `llm/llm.go` (+1 -0) 📝 `scripts/build_windows.ps1` (+9 -7) </details> ### 📄 Description Part of #2589 - Builds only the cpu runner for ARM64 Also, the existing CMake recipe already enables NEON and Armv8.2 extensions when ARM64 is detected. - I'll create another PR with build instructions. The main trick is that MSY2 has the CLANGARM64 environment that provides gcc aliases to Clang. Maintainer changes are enabled. Feel free to adjust the changes to your liking. --- <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-29 12:51:44 -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#58042