Skip to content

ci: disable GGML_NATIVE for cross-compiled darwin x86_64#10

Merged
PABannier merged 1 commit intomainfrom
fix/release-macos-x86-native
Apr 10, 2026
Merged

ci: disable GGML_NATIVE for cross-compiled darwin x86_64#10
PABannier merged 1 commit intomainfrom
fix/release-macos-x86-native

Conversation

@PABannier
Copy link
Copy Markdown
Owner

Summary

  • Follow-up to ci: cross-compile darwin x86_64 from arm64 runner #9 — cross-compile from arm64 runner broke with error: unknown target CPU 'apple-m3'
  • ggml's native arch detection passes -march=native using the host CPU, which clang rejects when -arch x86_64 is also set
  • Disable GGML_NATIVE for this matrix entry; produces a generic (and more portable) x86_64 build

Test plan

  • Retag v1.0.0 after merge and confirm the Build macOS x86_64 job reaches the Package step

🤖 Generated with Claude Code

Building on macos-latest (arm64) with CMAKE_OSX_ARCHITECTURES=x86_64
causes ggml's native arch detection to pass -march=native with the
host CPU (apple-m3), which Apple clang rejects for an x86_64 target.
Set GGML_NATIVE=OFF so ggml emits a generic x86_64 build — also more
appropriate for a release artifact than host-tuned codegen.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@PABannier PABannier merged commit 01832ef into main Apr 10, 2026
@PABannier PABannier deleted the fix/release-macos-x86-native branch April 10, 2026 08:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant