diff options
Diffstat (limited to 'build.zig')
| -rw-r--r-- | build.zig | 13 |
1 files changed, 13 insertions, 0 deletions
@@ -75,6 +75,19 @@ pub fn build(b: *std.Build) void { emit.expectStdErrMatch("exit 7"); core.dependOn(&emit.step); + const bench = b.addExecutable(.{ .name = "bench-store", .root_module = b.createModule(.{ + .root_source_file = b.path("bench/store.zig"), + .target = target, + .optimize = .ReleaseFast, + .imports = &.{.{ .name = "ztrace", .module = b.createModule(.{ + .root_source_file = b.path("src/trace/root.zig"), + .target = target, + .optimize = .ReleaseFast, + .imports = &.{.{ .name = "xitdb", .module = xitdb }}, + }) }}, + }) }); + b.step("bench-store", "What a recording costs a moment").dependOn(&b.addRunArtifact(bench).step); + // Each area adds its own artifacts, targets and test step. @import("build/debugger.zig").add(ctx); @import("build/agent.zig").add(ctx); |
