diff --git a/build.zig b/build.zig index ba64118..0295765 100644 --- a/build.zig +++ b/build.zig @@ -27,12 +27,12 @@ pub fn build(b: *std.Build) void { // This declares intent for the executable to be installed into the // standard location when the user invokes the "install" step (the default // step when running `zig build`). - exe.install(); + b.installArtifact(exe); // This *creates* a RunStep in the build graph, to be executed when another // step is evaluated that depends on it. The next line below will establish // such a dependency. - const run_cmd = exe.run(); + const run_cmd = b.addRunArtifact(exe); // By making the run step depend on the install step, it will be run from the // installation directory rather than directly from within the cache directory.