hack for different linux distros
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful

This commit is contained in:
jaina heartles 2022-12-18 06:45:12 -08:00
parent e4b67ad66b
commit e3f90f22ef

View file

@ -97,6 +97,7 @@ pub fn build(b: *std.build.Builder) !void {
if (enable_postgres) exe.linkSystemLibrary("pq");
exe.linkLibC();
exe.addSystemIncludePath("/usr/include/");
exe.addSystemIncludePath("/usr/include/postgresql"); // HACK
const unittest_http_cmd = b.step("unit:http", "Run tests for http package");
const unittest_http = b.addTest("src/http/lib.zig");
@ -138,6 +139,7 @@ pub fn build(b: *std.build.Builder) !void {
api_integration.addPackage(pkgs.api);
api_integration.linkLibC();
api_integration.addSystemIncludePath("/usr/include/");
api_integration.addSystemIncludePath("/usr/include/postgresql"); // HACK
if (enable_sqlite) api_integration.linkSystemLibrary("sqlite3");
if (enable_postgres) api_integration.linkSystemLibrary("pq");