diff options
Diffstat (limited to 'comments/build.zig')
-rw-r--r-- | comments/build.zig | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/comments/build.zig b/comments/build.zig index a678527..eb8f8fb 100644 --- a/comments/build.zig +++ b/comments/build.zig @@ -30,9 +30,9 @@ pub fn build(b: *std.Build) void { exe.addModule("zws", zws.module("zigwebserver")); exe.linkLibrary(zws.artifact("zigwebserver")); - exe.linkLibC(); - exe.linkSystemLibrary("libpq"); - exe.addIncludePath(.{ .path = "/usr/include" }); + const pq = b.dependency("pq", opts); + exe.addModule("pq", pq.module("pq")); + exe.linkLibrary(pq.artifact("pq")); const mustache = b.dependency("mustache", opts); exe.addModule("mustache", mustache.module("mustache")); |