diff options
Diffstat (limited to 'build.zig')
| -rw-r--r-- | build.zig | 5 |
1 files changed, 5 insertions, 0 deletions
| @@ -7,6 +7,11 @@ const Builder = std.build.Builder; | |||
| 7 | pub fn build(b: *Builder) void { | 7 | pub fn build(b: *Builder) void { |
| 8 | const mode = b.standardReleaseOptions(); | 8 | const mode = b.standardReleaseOptions(); |
| 9 | 9 | ||
| 10 | const fmt_step = b.addFmt([_][]const u8{ | ||
| 11 | "build.zig", | ||
| 12 | "clap", | ||
| 13 | }); | ||
| 14 | |||
| 10 | const test_all_step = b.step("test", "Run all tests in all modes."); | 15 | const test_all_step = b.step("test", "Run all tests in all modes."); |
| 11 | inline for ([_]Mode{ Mode.Debug, Mode.ReleaseFast, Mode.ReleaseSafe, Mode.ReleaseSmall }) |test_mode| { | 16 | inline for ([_]Mode{ Mode.Debug, Mode.ReleaseFast, Mode.ReleaseSafe, Mode.ReleaseSmall }) |test_mode| { |
| 12 | const mode_str = comptime modeToString(test_mode); | 17 | const mode_str = comptime modeToString(test_mode); |