Skip to content

Update to zig 0.17.0 #159

Closed
Closed

Description

@rguiscard

Here is the update of build.zig to compile on Zig 0.17. Just a change of one-line.

diff --git a/build.zig b/build.zig
index 776277f..43d86e0 100644
--- a/build.zig
+++ b/build.zig
@@ -77,9 +77,10 @@ pub fn build(b: *std.Build) void {

         const run_cmd = b.addRunArtifact(example);
         run_cmd.step.dependOn(&install_example.step);
-        if (b.args) |args| {
-            run_cmd.addArgs(args);
-        }
+        run_cmd.addPassthruArgs();

         const run_step = b.step(
             b.fmt("run-{s}", .{example_name}),

Activity

  1. added a commit that references this issue on Oct 13, 2026
    69a1a2a
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions