diff options
| author | Gabriel Schneider <[email protected]> | 2026-11-10 15:14:31 -0300 |
|---|---|---|
| committer | Gabriel Schneider <[email protected]> | 2026-11-10 15:15:21 -0300 |
| commit | 1d54a3d3220706acfe704a0c1d6cda47cc0df43d (patch) | |
| tree | c253dd23543dc6082ec72b52152214e466121c45 /build/llvm.zig | |
| parent | 7e9bf9e6e85c6c6e7a400d4fa0b43b77133ed3cb (diff) | |
| download | computeranim-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/llvm.zig')
| -rw-r--r-- | build/llvm.zig | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/build/llvm.zig b/build/llvm.zig index b346f13..94b7501 100644 --- a/build/llvm.zig +++ b/build/llvm.zig @@ -24,6 +24,8 @@ pub fn add(ctx: Ctx) std.Build.LazyPath { cxx.addFileArg(b.path("llvm/pass.cpp")); const plugin = cxx.addOutputFileArg("ztrace-pass.so"); b.getInstallStep().dependOn(&b.addInstallLibFile(plugin, "ztrace-pass.so").step); + // For a package that depends on this one: `dependency.namedLazyPath("ztrace-pass")`. + b.addNamedLazyPath("ztrace-pass", plugin); // For whoever draws values: the parser of type descriptions. const types = b.addModule("ztrace-types", .{ .root_source_file = b.path("src/instr/types.zig"), .target = ctx.target, .optimize = ctx.optimize }); |
