From 6257db275bd9bb5794effaa9f7c4f5d6995024ce Mon Sep 17 00:00:00 2001 From: Martin Ashby Date: Fri, 19 Jul 2024 21:59:42 +0100 Subject: Convert to using pg.zig instead of wrapping libpq for postgresql access Pure zig also means cross compilation works again! --- comments/build.zig | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'comments/build.zig') diff --git a/comments/build.zig b/comments/build.zig index c978095..958fb6d 100644 --- a/comments/build.zig +++ b/comments/build.zig @@ -29,10 +29,8 @@ pub fn build(b: *std.Build) void { const zws = b.dependency("zigwebserver", opts); exe.root_module.addImport("zws", zws.module("zigwebserver")); - const pq = b.dependency("pq", opts); - exe.root_module.addImport("pq", pq.module("pq")); - exe.linkLibC(); - exe.linkSystemLibrary("pq"); + const pg = b.dependency("pg", opts); + exe.root_module.addImport("pg", pg.module("pg")); const mustache = b.dependency("mustache", opts); exe.root_module.addImport("mustache", mustache.module("mustache")); -- cgit v1.2.3-ZIG