Add macOS support (Apple Silicon and Intel) #272
Draft
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Add macOS Support (Apple Silicon and Intel)
Summary
Adds macOS build support on Apple Silicon (arm64) and Intel (x86_64) with automatic Homebrew dependency detection and architecture-aware flags.
Highlights
phase/src/models/simd_compat.hto provide AVX2 vectors with a scalar fallback that preserves the existing HMM API.-Lsearch paths before-llibraries.Testing
Technical notes
makenow gates AVX2/FMA flags behind an x86_64 host check; other architectures emit a skip message instead of failing.Compatibility
Next steps
Reviewer checklist
macOS setup
Scalar fallback keeps correctness while NEON optimisations are prepared.