X-Git-Url: https://gitweb.ps.run/chirp/blobdiff_plain/637a79f940f620181f94fff37bd7bfce2a564a1b..8c4068986ff26fe12e46d6ba3208e279678ce524:/build.zig diff --git a/build.zig b/build.zig index c49960c..824c10f 100644 --- a/build.zig +++ b/build.zig @@ -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); }