diff --git a/build.zig b/build.zig index 985b437..31ad47d 100644 --- a/build.zig +++ b/build.zig @@ -81,9 +81,12 @@ pub fn build(b: *std.Build) void { .link_libc = true, .link_allow_shlib_undefined = true, }); + tests.lib.root_module.addOptions("build_options", test_options); + tests.lib.root_module.addIncludePath(b.path("./src/pgzx/c/include/")); + + tests.lib.root_module.addImport("pgzx_pgsys", pgzx_pgsys); tests.lib.root_module.addImport("pgzx", pgzx); - tests.lib.root_module.addOptions("build_options", test_options); break :blk tests; };