summaryrefslogtreecommitdiff
path: root/build.zig
diff options
context:
space:
mode:
Diffstat (limited to 'build.zig')
-rw-r--r--build.zig8
1 files changed, 4 insertions, 4 deletions
diff --git a/build.zig b/build.zig
index eed582d..7a1fe95 100644
--- a/build.zig
+++ b/build.zig
@@ -1,15 +1,15 @@
1pub fn build(b: *std.Build) void { 1pub fn build(b: *std.Build) void {
2 const clap_mod = b.addModule("clap", .{ .root_source_file = b.path("clap.zig") });
3
4 const optimize = b.standardOptimizeOption(.{}); 2 const optimize = b.standardOptimizeOption(.{});
5 const target = b.standardTargetOptions(.{}); 3 const target = b.standardTargetOptions(.{});
6 4
7 const test_step = b.step("test", "Run all tests in all modes."); 5 const clap_mod = b.addModule("clap", .{
8 const tests = b.addTest(.{
9 .root_source_file = b.path("clap.zig"), 6 .root_source_file = b.path("clap.zig"),
10 .target = target, 7 .target = target,
11 .optimize = optimize, 8 .optimize = optimize,
12 }); 9 });
10
11 const test_step = b.step("test", "Run all tests in all modes.");
12 const tests = b.addTest(.{ .root_module = clap_mod });
13 const run_tests = b.addRunArtifact(tests); 13 const run_tests = b.addRunArtifact(tests);
14 test_step.dependOn(&run_tests.step); 14 test_step.dependOn(&run_tests.step);
15 15