build: add option to install tests
This commit is contained in:
parent
5b2962fdc0
commit
6b0cbe7171
1 changed files with 3 additions and 1 deletions
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue