Context
README sells "compiles to native x64 code." In practice every Mac shipped since late 2020 is Apple Silicon (arm64), so home build on the most common contributor laptop has no working native target.
| Backend |
LOC |
packages/codegen/src/x64.zig |
2,665 |
packages/codegen/src/arm64.zig |
259 |
packages/codegen/src/wasm.zig |
360 |
packages/codegen/src/llvm_codegen.zig |
619 |
This is the #1 blocker for adoption. New contributors zig build, run hello world, and find their machine isn't supported.
Scope
Notes
- LLVM backend (619 LOC) is also stub-grade. If parity via direct codegen is too much, an alternative path is "finish the LLVM backend and let it cover all non-x64 targets." Worth deciding upfront.
Context
README sells "compiles to native x64 code." In practice every Mac shipped since late 2020 is Apple Silicon (arm64), so
home buildon the most common contributor laptop has no working native target.packages/codegen/src/x64.zigpackages/codegen/src/arm64.zigpackages/codegen/src/wasm.zigpackages/codegen/src/llvm_codegen.zigThis is the #1 blocker for adoption. New contributors
zig build, run hello world, and find their machine isn't supported.Scope
arm64.zigto feature parity withx64.zigfor the language subset that has codegen tests todayaarch64-macosandaarch64-linuxaarch64-macos(GitHub-hosted M1 runners) andaarch64-linuxNotes