hack for different linux distros
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
This commit is contained in:
parent
e4b67ad66b
commit
e3f90f22ef
1 changed files with 2 additions and 0 deletions
|
@ -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");
|
||||
|
||||
|
|
Loading…
Reference in a new issue