aboutsummaryrefslogtreecommitdiff
path: root/comments/build.zig
diff options
context:
space:
mode:
authorMartin Ashby <martin@ashbysoft.com>2024-05-26 22:10:03 +0100
committerMartin Ashby <martin@ashbysoft.com>2024-05-26 22:10:03 +0100
commit12e32e5559be7427483f8520a58dce34046f020c (patch)
tree9d2ae0a9cad76bb071ff8b05150a17cd7050b2e1 /comments/build.zig
parent8666c8822d396f0c42c73f7c33e445f6608c4e51 (diff)
downloadmfashby.net-12e32e5559be7427483f8520a58dce34046f020c.tar.gz
mfashby.net-12e32e5559be7427483f8520a58dce34046f020c.tar.bz2
mfashby.net-12e32e5559be7427483f8520a58dce34046f020c.tar.xz
mfashby.net-12e32e5559be7427483f8520a58dce34046f020c.zip
Add post on zigvm
Fixup for zig master
Diffstat (limited to 'comments/build.zig')
-rw-r--r--comments/build.zig6
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,
});