Compare commits
2 commits
d5f8f84480
...
e3f90f22ef
Author | SHA1 | Date | |
---|---|---|---|
e3f90f22ef | |||
e4b67ad66b |
1 changed files with 3 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");
|
||||
|
@ -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");
|
||||
|
||||
|
|
Loading…
Reference in a new issue