Update to latest build system changes; use caching API in GenerateStep

This commit is contained in:
InKryption
2023-02-16 02:21:28 +01:00
parent 09565850a9
commit ef75aa0fd6
3 changed files with 49 additions and 29 deletions

View File

@@ -38,7 +38,8 @@ pub fn build(b: *std.Build) void {
shaders.add("triangle_frag", "examples/shaders/triangle.frag", .{});
triangle_exe.addModule("shaders", shaders.getModule());
const triangle_run_cmd = triangle_exe.run();
const triangle_run_cmd = b.addRunArtifact(triangle_exe);
triangle_run_cmd.condition = .always;
triangle_run_cmd.step.dependOn(b.getInstallStep());
const triangle_run_step = b.step("run-triangle", "Run the triangle example");
triangle_run_step.dependOn(&triangle_run_cmd.step);