From 8c4068986ff26fe12e46d6ba3208e279678ce524 Mon Sep 17 00:00:00 2001 From: patrick-scho Date: Sun, 16 Feb 2025 16:31:10 +0100 Subject: get things working again --- build.zig | 16 +++------------- 1 file changed, 3 insertions(+), 13 deletions(-) (limited to '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); } -- cgit v1.2.3