diff options
Diffstat (limited to 'comments/build.zig')
-rw-r--r-- | comments/build.zig | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/comments/build.zig b/comments/build.zig index 3293e4c..c978095 100644 --- a/comments/build.zig +++ b/comments/build.zig @@ -21,7 +21,7 @@ pub fn build(b: *std.Build) void { .name = "comments", // In this case the main source file is merely a path, however, in more // complicated build scripts, this could be a generated file. - .root_source_file = .{ .path = "src/main.zig" }, + .root_source_file = b.path("src/main.zig"), .target = target, .optimize = optimize, }); @@ -40,8 +40,6 @@ pub fn build(b: *std.Build) void { const smtp = b.dependency("smtp", opts); exe.root_module.addImport("smtp", smtp.module("smtp")); - - // This declares intent for the executable to be installed into the // standard location when the user invokes the "install" step (the default // step when running `zig build`). @@ -73,7 +71,7 @@ pub fn build(b: *std.Build) void { // Creates a step for unit testing. This only builds the test executable // but does not run it. const unit_tests = b.addTest(.{ - .root_source_file = .{ .path = "src/main.zig" }, + .root_source_file = b.path("src/main.zig"), .target = target, .optimize = optimize, }); |