diff options
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); } |
