Skip to content

Upgrade to Zig 0.16.0#17

Merged
rdunnington merged 5 commits into
rdunnington:mainfrom
lukewilliamboswell:zig-0.16.0
May 22, 2026
Merged

Upgrade to Zig 0.16.0#17
rdunnington merged 5 commits into
rdunnington:mainfrom
lukewilliamboswell:zig-0.16.0

Conversation

@lukewilliamboswell
Copy link
Copy Markdown
Contributor

@lukewilliamboswell lukewilliamboswell commented Apr 14, 2026

  • Fix std.c.PROT usage which changed from integer constants to a packed struct in Zig 0.16
    • std.c.PROT.NONE.{} (default packed struct)
    • std.c.PROT.READ | std.c.PROT.WRITE.{ .READ = true, .WRITE = true }

Status: Ready, just waiting for the Zig 0.16.0 release before updating CI runners too

lukewilliamboswell and others added 3 commits July 31, 2025 10:51
Update build.zig to use the new root_module API for addTest, and
fix std.c.PROT usage which changed from integer constants to a
packed struct.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@lukewilliamboswell lukewilliamboswell changed the title Zig 0.16.0: fix std.c.PROT API change [WIP] Upgrade to Zig 0.16.0 Apr 14, 2026
lukewilliamboswell and others added 2 commits May 20, 2026 01:27
Zig 0.16 removed the std.os.windows.VirtualAlloc/VirtualFree wrappers
and their MEM_*/PAGE_* constants. Declare the bindings we need locally
on top of std.os.windows's existing type aliases. Assert VirtualFree
success in debug builds since both callsites pass programmer-controlled
arguments where failure indicates a bug.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This branch targets Zig 0.16.0 — the prior compatibility commit
already uses 0.16-only APIs (std.c.PROT struct literal, BOOL enum
wrapper), so CI could not pass on 0.15.1.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@lukewilliamboswell lukewilliamboswell marked this pull request as ready for review May 20, 2026 02:11
@lukewilliamboswell lukewilliamboswell changed the title [WIP] Upgrade to Zig 0.16.0 Upgrade to Zig 0.16.0 May 20, 2026
@rdunnington rdunnington merged commit 07afbed into rdunnington:main May 22, 2026
3 checks passed
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.

2 participants