Compare commits

..

2 commits

Author SHA1 Message Date
e3f90f22ef hack for different linux distros
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
2022-12-18 06:45:12 -08:00
e4b67ad66b add system include directory
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
2022-12-18 06:25:00 -08:00

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");
@ -137,6 +138,8 @@ pub fn build(b: *std.build.Builder) !void {
api_integration.addPackage(pkgs.main);
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");