fix(build): respond to latest build changes

This commit is contained in:
Rekai Nyangadzayi Musuka 2023-04-13 22:17:27 -05:00
parent 82604bfdaf
commit 5f9126ec32
1 changed files with 2 additions and 2 deletions

View File

@ -27,12 +27,12 @@ pub fn build(b: *std.Build) void {
// This declares intent for the executable to be installed into the // This declares intent for the executable to be installed into the
// standard location when the user invokes the "install" step (the default // standard location when the user invokes the "install" step (the default
// step when running `zig build`). // step when running `zig build`).
exe.install(); b.installArtifact(exe);
// This *creates* a RunStep in the build graph, to be executed when another // 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 // step is evaluated that depends on it. The next line below will establish
// such a dependency. // 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 // 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. // installation directory rather than directly from within the cache directory.