summaryrefslogtreecommitdiff
path: root/examples/live/build.zig
diff options
context:
space:
mode:
Diffstat (limited to 'examples/live/build.zig')
-rw-r--r--examples/live/build.zig4
1 files changed, 3 insertions, 1 deletions
diff --git a/examples/live/build.zig b/examples/live/build.zig
index 2ad85fb..2f76306 100644
--- a/examples/live/build.zig
+++ b/examples/live/build.zig
@@ -29,8 +29,10 @@ pub fn build(b: *std.Build) void {
.{ .name = "shaders", .module = shaders.module },
};
+ const app = sb.app(.{ .name = "live", .root_source_file = b.path("src/main.zig"), .imports = imports });
+ const steps = app.addSteps(.{ .scripts = &.{b.path("test/live.script")} });
const lang_test = b.addTest(.{ .root_module = b.createModule(.{ .root_source_file = b.path("src/Lang.zig"), .target = target, .optimize = optimize }) });
- b.step("test", "Run the language's tests").dependOn(&b.addRunArtifact(lang_test).step);
+ steps.test_step.dependOn(&b.addRunArtifact(lang_test).step);
// The interpreter's GPU time over made-up tapes (`--profile-gpu`).
const probe = sb.app(.{ .name = "live-probe", .root_source_file = b.path("src/probe.zig"), .imports = imports });