You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
build: Zig 0.17 fails on std.Build.args despite documented 0.16-or-later support #3
A source build fails with Homebrew's Zig 0.17.0 on Apple Silicon because both Slab and the in-tree fy build script access std.Build.args, which is absent in 0.17. The same checkout builds successfully with Zig 0.16.0 and the same raylib installation.
Environment
Commit: 247cccd37bc564cb0d9482c1bca37afbe6117b5b
macOS 26.7.1, arm64
Zig 0.17.0 installed via Homebrew
raylib 6.0 installed via Homebrew
No changes to Slab or fy build scripts
Reproduction
From the repository root with Zig 0.17.0:
zig version
# 0.17.0
zig build -Doptimize=ReleaseFast
The failing build in this session used ZIG_GLOBAL_CACHE_DIR pointing to a temporary directory; that does not change the build API incompatibility.
Actual result
build.zig:48:11: error: no field named 'args' in struct 'Build'
if (b.args) |args| kernel_probe_cmd.addArgs(args);
^~~~
/opt/homebrew/Cellar/zig/0.17.0/lib/zig/std/Build.zig:1:1: note: struct declared here
const Build = @This();
^~~~~
fy/build.zig:69:11: error: no field named 'args' in struct 'Build'
if (b.args) |args| run_bench.addArgs(args);
^~~~
/opt/homebrew/Cellar/zig/0.17.0/lib/zig/std/Build.zig:1:1: note: struct declared here
const Build = @This();
^~~~~
Expected result
The build succeeds with the documented toolchain range, or setup documentation explicitly identifies the supported Zig version. README.md currently says “Zig 0.16 or later,” and build.zig.zon declares a minimum version of 0.16.0, so installing the current Homebrew version appears supported.
Verified workaround
Using the official Zig 0.16.0 aarch64 macOS distribution, zig build -Doptimize=ReleaseFast succeeded against the same checkout and raylib 6.0. The resulting Slab executable also successfully exported an 83-second project with a mix and eight stems.
Please either update the Slab and fy build scripts for Zig 0.17 and check for further compatibility issues, or document/pin Zig 0.16 until 0.17 support is validated. Fixing these two errors alone has not been verified to make the entire project compatible with 0.17.
Activity