From 6b0cbe717195658d8cd63b37b0697399c27ba2a8 Mon Sep 17 00:00:00 2001 From: CJ van den Berg Date: Mon, 9 Mar 2026 12:19:23 +0100 Subject: [PATCH] build: add option to install tests --- build.zig | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/build.zig b/build.zig index 20073cf..1598963 100644 --- a/build.zig +++ b/build.zig @@ -82,5 +82,7 @@ pub fn build(b: *std.Build) void { const test_step = b.step("test", "Run tests"); test_step.dependOn(&run_tests.step); - b.installArtifact(tests); + if (b.option(bool, "install_tests", "Install the tests executable to the output directory") orelse false) { + b.installArtifact(tests); + } }