summaryrefslogtreecommitdiff
path: root/build/agent.zig
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-11-10 15:14:31 -0300
committerGabriel Schneider <[email protected]>2026-11-10 15:15:21 -0300
commit1d54a3d3220706acfe704a0c1d6cda47cc0df43d (patch)
treec253dd23543dc6082ec72b52152214e466121c45 /build/agent.zig
parent7e9bf9e6e85c6c6e7a400d4fa0b43b77133ed3cb (diff)
downloadcomputeranim-1d54a3d3220706acfe704a0c1d6cda47cc0df43d.tar.gz
computeranim-1d54a3d3220706acfe704a0c1d6cda47cc0df43d.zip
build: the pass and the agent to preload are named lazy paths; canim uses them
A package that depends on ztrace no longer repeats the plugin's recipe or searches the install step for the shared agent.
Diffstat (limited to 'build/agent.zig')
-rw-r--r--build/agent.zig3
1 files changed, 3 insertions, 0 deletions
diff --git a/build/agent.zig b/build/agent.zig
index d02880a..507171f 100644
--- a/build/agent.zig
+++ b/build/agent.zig
@@ -32,6 +32,9 @@ pub fn add(ctx: Ctx) *Compile {
b.installArtifact(lib.*);
}
b.getInstallStep().dependOn(&b.addInstallHeaderFile(b.path("include/ztrace.h"), "ztrace.h").step);
+ // For a package that depends on this one: the library to preload, by a
+ // name of its own (two artifacts are called ztrace-agent).
+ b.addNamedLazyPath("ztrace-agent", libs[0].getEmittedBin());
const t: Tests = .{
.ctx = ctx,