Skip to content

Commit 01832ef

Browse files
PABannierclaude
andauthored
ci: disable GGML_NATIVE for cross-compiled darwin x86_64 (#10)
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>
1 parent ce326c4 commit 01832ef

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
- name: macOS x86_64
2424
os: macos-latest
2525
artifact: sam3-darwin-x86_64
26-
cmake_args: "-DGGML_METAL=OFF -DSAM3_METAL=OFF -DBUILD_SHARED_LIBS=OFF -DCMAKE_OSX_ARCHITECTURES=x86_64"
26+
cmake_args: "-DGGML_METAL=OFF -DSAM3_METAL=OFF -DBUILD_SHARED_LIBS=OFF -DCMAKE_OSX_ARCHITECTURES=x86_64 -DGGML_NATIVE=OFF"
2727
build_args: ""
2828
ext: tar.gz
2929

0 commit comments

Comments
 (0)