diff options
| author | patrick-scho | 2025-02-16 16:31:10 +0100 |
|---|---|---|
| committer | patrick-scho | 2025-02-16 16:31:10 +0100 |
| commit | 8c4068986ff26fe12e46d6ba3208e279678ce524 (patch) | |
| tree | ca3b3eb54cd38cae166966e6dfc1ee89f56e0e22 /build.zig | |
| parent | 637a79f940f620181f94fff37bd7bfce2a564a1b (diff) | |
| download | chirp-8c4068986ff26fe12e46d6ba3208e279678ce524.tar.gz chirp-8c4068986ff26fe12e46d6ba3208e279678ce524.zip | |
get things working again
Diffstat (limited to 'build.zig')
| -rw-r--r-- | build.zig | 16 |
1 files changed, 3 insertions, 13 deletions
@@ -15,20 +15,14 @@ pub fn build(b: *std.Build) void { // other modules exe.root_module.omit_frame_pointer = false; - const epoll = b.addExecutable(.{ - .name = "epoll", - .root_source_file = .{ .cwd_relative = "src/epoll.zig" }, - .target = target, - .optimize = optimize, - }); - const lmdb = b.dependency("lmdb", .{ .target = target, .optimize = optimize }); var lmdb_mod = lmdb.module("lmdb"); lmdb_mod.omit_frame_pointer = false; exe.root_module.addImport("lmdb", lmdb_mod); + var db_mod = lmdb.module("db"); + db_mod.omit_frame_pointer = false; + exe.root_module.addImport("db", db_mod); exe.linkLibC(); - epoll.root_module.addImport("lmdb", lmdb_mod); - epoll.linkLibC(); const http = b.dependency("http", .{ .target = target, .optimize = optimize }); const http_mod = http.module("http"); @@ -41,8 +35,4 @@ pub fn build(b: *std.Build) void { run_cmd.step.dependOn(b.getInstallStep()); const run_step = b.step("run", "Run the app"); run_step.dependOn(&run_cmd.step); - - const run_epoll_cmd = b.addRunArtifact(epoll); - const run_epoll_step = b.step("runepoll", "run epoll"); - run_epoll_step.dependOn(&run_epoll_cmd.step); } |
