diff options
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); |