summaryrefslogtreecommitdiff
path: root/build.zig
diff options
context:
space:
mode:
authorMartin Ashby <martin@ashbysoft.com>2023-08-28 19:30:25 +0100
committerMartin Ashby <martin@ashbysoft.com>2023-08-28 19:30:25 +0100
commit476530136f9e5ae9ad048cfd482383819bd6d242 (patch)
treea39911be0177097c9ea8e3a096bf6a0fffc62e1c /build.zig
parent579a9daf89a69d01cabcaf4ee96a834b130b0fcb (diff)
downloadzigwebserver-476530136f9e5ae9ad048cfd482383819bd6d242.tar.gz
zigwebserver-476530136f9e5ae9ad048cfd482383819bd6d242.tar.bz2
zigwebserver-476530136f9e5ae9ad048cfd482383819bd6d242.tar.xz
zigwebserver-476530136f9e5ae9ad048cfd482383819bd6d242.zip
update build.zig for module system
Diffstat (limited to 'build.zig')
-rw-r--r--build.zig3
1 files changed, 3 insertions, 0 deletions
diff --git a/build.zig b/build.zig
index 24dfe54..8b32d17 100644
--- 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`).