summaryrefslogtreecommitdiff
path: root/build/agent.zig
diff options
context:
space:
mode:
Diffstat (limited to 'build/agent.zig')
-rw-r--r--build/agent.zig4
1 files changed, 3 insertions, 1 deletions
diff --git a/build/agent.zig b/build/agent.zig
index 3fea2e2..c1e1dcc 100644
--- a/build/agent.zig
+++ b/build/agent.zig
@@ -4,7 +4,8 @@ const std = @import("std");
const Ctx = @import("../build.zig").Ctx;
const Compile = std.Build.Step.Compile;
-pub fn add(ctx: Ctx) void {
+/// Returns the library to preload, for what tests it with other backends.
+pub fn add(ctx: Ctx) *Compile {
const b = ctx.b;
const imports: []const std.Build.Module.Import = &.{.{ .name = "ztrace", .module = ctx.ztrace }};
@@ -163,6 +164,7 @@ pub fn add(ctx: Ctx) void {
}
bench_step.dependOn(before.?);
for ([_]*Compile{ api, api_static, api_zig }) |exe| b.installArtifact(exe);
+ return libs[0];
}
const Recording = struct { run: *std.Build.Step.Run, file: std.Build.LazyPath };