From ecb79fc433765688cf60ac4ee8ebe38e782641cd Mon Sep 17 00:00:00 2001 From: Nathan Reiner Date: Mon, 2 Nov 2026 09:05:43 +0100 Subject: update to zig 0.17 --- build.zig | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'build.zig') diff --git a/build.zig b/build.zig index a805b17..3e9c21b 100644 --- a/build.zig +++ b/build.zig @@ -68,9 +68,7 @@ pub fn build(b: *std.Build) void { run_step.dependOn(&run_cmd.step); run_cmd.step.dependOn(b.getInstallStep()); - if (b.args) |args| { - run_cmd.addArgs(args); - } + run_cmd.addPassthruArgs(); const db_tests = b.addTest(.{ .root_module = db_mod, @@ -106,13 +104,13 @@ pub fn build(b: *std.Build) void { const fmt_step = b.step("fmt", "Format"); const do_fmt = b.addFmt(.{ - .paths = &.{"src"}, + .paths = b.pathList(&.{"src"}), }); fmt_step.dependOn(&do_fmt.step); const check_fmt_step = b.step("check", "Check format and syntax"); const do_check_fmt = b.addFmt(.{ - .paths = &.{"src"}, + .paths = b.pathList(&.{"src"}), .check = true, }); check_fmt_step.dependOn(&do_check_fmt.step); -- cgit v1.2.3-70-g09d2