commit 476530136f9e5ae9ad048cfd482383819bd6d242
parent 579a9daf89a69d01cabcaf4ee96a834b130b0fcb
Author: Martin Ashby <martin@ashbysoft.com>
Date: Mon, 28 Aug 2023 19:30:25 +0100
update build.zig for module system
Diffstat:
1 file changed, 3 insertions(+), 0 deletions(-)
diff --git a/build.zig b/build.zig
@@ -24,6 +24,9 @@ pub fn build(b: *std.Build) void {
.optimize = optimize,
});
+ // for zig module system
+ _ = b.addModule("zigwebserver", .{ .source_file = .{ .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
// step when running `zig build`).