diff options
| author | Nathan Reiner <nathan@nathanreiner.xyz> | 2026-11-02 09:05:43 +0100 |
|---|---|---|
| committer | Nathan Reiner <nathan@nathanreiner.xyz> | 2026-11-02 09:05:43 +0100 |
| commit | ecb79fc433765688cf60ac4ee8ebe38e782641cd (patch) | |
| tree | 68c954fdc41bdf0b4b8e858c4252fd3b959fb85a /build.zig | |
| parent | 4363d446c1f40515f7830caa644cc4e580841122 (diff) | |
update to zig 0.17dev
Diffstat (limited to 'build.zig')
| -rw-r--r-- | build.zig | 8 |
1 files changed, 3 insertions, 5 deletions
@@ -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); |