]> gitweb.ps.run Git - chirp/blobdiff - build.zig
Only show Quote field when logged in
[chirp] / build.zig
index c49960cf7cc1b6a259c28b1da32c9c80c9f8eef6..824c10f34a9c59bafb46869fc7f08963b3a02200 100644 (file)
--- 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);
 }