Skip to content

chore: support Zig 0.17.1 - #96

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

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

Conversation

@GrapeBaBa

Copy link
Copy Markdown
Contributor

Summary

  • Translate Node N-API headers in the build graph and preserve the N-API version override.
  • Migrate reflection, mutex calls, enum builtins and string formatting to Zig 0.17.1.
  • Preserve the public CLI optimization names while forwarding Zig 0.17 optimization tags, with four regression tests.
  • Pin CI, examples and the minimum compiler to exactly Zig 0.17.1.

Prerequisite

Depends on existing ChainSafe/zbuild#10. This draft pins its current head, dd2f7b8b59d5ff81b1f2d3b946edd25feaf7854c. Refresh that pin after merge rather than opening a duplicate zbuild PR.

Validation

Tested on aarch64 macOS with a private Zig 0.17.1 compiler.

  • zig fmt --check .
  • zig build test -j2 --summary all: 90 tests passed.
  • zig build test -Doptimize=fast -j2 --summary all: 90 tests passed.
  • zig build test -Dbuild_options.napi_version=8 -j2 --summary all: 90 tests passed.
  • cd examples && zig build --fork=.. -j2 --summary all: all six addons built.
  • pnpm build:js, pnpm lint:js, pnpm test:js: passed; 193 JavaScript tests.
  • The four new optimization-forwarding tests failed before the TypeScript change and passed afterward.

AI assistance

This PR was written primarily by Hermes Agent (Nous Research), using OpenAI gpt-6.1-sol. Maintainer review is still required.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: In Progress

Development

Successfully merging this pull request may close these issues.

1 participant