Skip to content

chore: support Zig 0.17.1 - #14

Draft
GrapeBaBa wants to merge 3 commits into
mainfrom
grapebaba/zig-0.17.1
Draft

GrapeBaBa wants to merge 3 commits into
mainfrom
grapebaba/zig-0.17.1

Conversation

@GrapeBaBa

@GrapeBaBa GrapeBaBa commented Nov 27, 2026 •

Copy link
Copy Markdown

Summary

  • Translate the C header in the build graph instead of using removed @cImport.
  • Replace array repetition with typed splats.
  • Use builtin.target.cpu/os/abi and isAarch64, replacing the deprecated builtin.cpu/os/abi and isAARCH64.
  • Pin the compiler requirement and CI to exactly Zig 0.17.1.

Validation

Tested on aarch64 macOS with Zig 0.17.1.

  • zig fmt --check on tracked Zig/ZON files.
  • zig build test --summary all: 2 tests passed, also with -Doptimize=fast.
  • Builds for aarch64-linux-gnu and x86_64-macos. (Cross-compiling the x86_64 assembly for Linux from macOS fails identically before and after this PR because the host clang rejects GNU as flags; native Linux CI is unaffected.)
  • Existing SHA-256 known-answer and overlapping-buffer tests failed to compile before the migration and pass afterward.

AI assistance

This PR was written primarily by Hermes Agent (Nous Research) and Claude Code. Maintainer review is still required.

Zig 0.17 deprecates @import("builtin").cpu/os/abi in favor of builtin.target.*, and Target.Cpu.Arch.isAARCH64 in favor of isAarch64.
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