summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Ashby <martin@ashbysoft.com>2024-05-26 15:02:56 +0100
committerMartin Ashby <martin@ashbysoft.com>2024-05-26 15:02:56 +0100
commit941f161974115b677ee7514abf45ec7a216f250f (patch)
tree81bc3c3218ac87d6894cd556709cfed17b3530fc
parentc0b0b259a572bcc65dd2e6d55a126ead9c2ae6ff (diff)
downloadzigwebserver-941f161974115b677ee7514abf45ec7a216f250f.tar.gz
zigwebserver-941f161974115b677ee7514abf45ec7a216f250f.tar.bz2
zigwebserver-941f161974115b677ee7514abf45ec7a216f250f.tar.xz
zigwebserver-941f161974115b677ee7514abf45ec7a216f250f.zip
Changes for latest zig masterHEADmain
-rw-r--r--build.zig8
1 files changed, 4 insertions, 4 deletions
diff --git a/build.zig b/build.zig
index ae532eb..139ea79 100644
--- a/build.zig
+++ b/build.zig
@@ -19,21 +19,21 @@ pub fn build(b: *std.Build) void {
.name = "zigwebserver-exe",
// 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,
});
const lib = b.addStaticLibrary(.{
.name = "zigwebserver",
- .root_source_file = .{ .path = "src/zigwebserver.zig" },
+ .root_source_file = b.path("src/zigwebserver.zig"),
.target = target,
.optimize = optimize,
});
b.installArtifact(lib);
// for zig module system
- _ = b.addModule("zigwebserver", .{ .root_source_file = .{ .path = "src/zigwebserver.zig" } });
+ _ = b.addModule("zigwebserver", .{ .root_source_file = b.path("src/zigwebserver.zig") });
// This declares intent for the executable to be installed into the
// standard location when the user invokes the "install" step (the default
@@ -66,7 +66,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,
});