diff options
author | Martin Ashby <martin@ashbysoft.com> | 2024-07-19 21:59:42 +0100 |
---|---|---|
committer | Martin Ashby <martin@ashbysoft.com> | 2024-07-19 21:59:42 +0100 |
commit | 6257db275bd9bb5794effaa9f7c4f5d6995024ce (patch) | |
tree | 75ab2b2ffba7e2d446c686ad5f7c2c67cde88c20 /comments/build.zig | |
parent | 54b7021b063a81bc1655a6b4519b9a41cd6ed30b (diff) | |
download | mfashby.net-6257db275bd9bb5794effaa9f7c4f5d6995024ce.tar.gz mfashby.net-6257db275bd9bb5794effaa9f7c4f5d6995024ce.tar.bz2 mfashby.net-6257db275bd9bb5794effaa9f7c4f5d6995024ce.tar.xz mfashby.net-6257db275bd9bb5794effaa9f7c4f5d6995024ce.zip |
Convert to using pg.zig instead of wrapping libpq for postgresql access
Pure zig also means cross compilation works again!
Diffstat (limited to 'comments/build.zig')
-rw-r--r-- | comments/build.zig | 6 |
1 files changed, 2 insertions, 4 deletions
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")); |