diff options
| author | patrick-scho | 2025-02-09 22:23:51 +0100 |
|---|---|---|
| committer | patrick-scho | 2025-02-09 22:27:36 +0100 |
| commit | a5ca46271850eb39cd48ad2eb6ee675a2e36e9c3 (patch) | |
| tree | 58c0fa21869430b2eab31d7b09d9b7643ad3d392 | |
| parent | 795172837be6b5f0a6461abc826138e6e3f94245 (diff) | |
| download | chirp-a5ca46271850eb39cd48ad2eb6ee675a2e36e9c3.tar.gz chirp-a5ca46271850eb39cd48ad2eb6ee675a2e36e9c3.zip | |
Add http as external dependency
| -rw-r--r-- | build.zig | 5 | ||||
| -rw-r--r-- | build.zig.zon | 3 |
2 files changed, 8 insertions, 0 deletions
@@ -30,6 +30,11 @@ pub fn build(b: *std.Build) void { epoll.root_module.addImport("lmdb", lmdb_mod); epoll.linkLibC(); + const http = b.dependency("http", .{ .target = target, .optimize = optimize }); + const http_mod = http.module("http"); + // lmdb_mod.omit_frame_pointer = false; + exe.root_module.addImport("http", http_mod); + b.installArtifact(exe); const run_cmd = b.addRunArtifact(exe); diff --git a/build.zig.zon b/build.zig.zon index ab8c6ab..4d2cc1f 100644 --- a/build.zig.zon +++ b/build.zig.zon @@ -12,5 +12,8 @@ // .hash = "122001bacb21ad7eb237531fb218962270a178c52893bbfd9c5ce493232747e652e2", .path = "../ziglmdb", }, + .http = .{ + .path = "../zighttp", + }, }, } |
