diff options
| author | 2022-12-09 10:49:54 +0100 | |
|---|---|---|
| committer | 2022-12-09 10:49:54 +0100 | |
| commit | a5452fd8c4479e53f0a9d0866874b44e5aae35a5 (patch) | |
| tree | 3cecb1ef229458318f61438c76bb065e0e852b6b /build.zig | |
| parent | Handle change to std.ArrayList(T).toOwnedSlice() (diff) | |
| download | zig-clap-a5452fd8c4479e53f0a9d0866874b44e5aae35a5.tar.gz zig-clap-a5452fd8c4479e53f0a9d0866874b44e5aae35a5.tar.xz zig-clap-a5452fd8c4479e53f0a9d0866874b44e5aae35a5.zip | |
Update to newest version of zig
Diffstat (limited to '')
| -rw-r--r-- | build.zig | 2 |
1 files changed, 0 insertions, 2 deletions
| @@ -5,13 +5,11 @@ const Builder = std.build.Builder; | |||
| 5 | pub fn build(b: *Builder) void { | 5 | pub fn build(b: *Builder) void { |
| 6 | const mode = b.standardReleaseOptions(); | 6 | const mode = b.standardReleaseOptions(); |
| 7 | const target = b.standardTargetOptions(.{}); | 7 | const target = b.standardTargetOptions(.{}); |
| 8 | const stage1 = b.option(bool, "stage1", "Use the stage 1 compiler") orelse false; | ||
| 9 | 8 | ||
| 10 | const test_step = b.step("test", "Run all tests in all modes."); | 9 | const test_step = b.step("test", "Run all tests in all modes."); |
| 11 | const tests = b.addTest("clap.zig"); | 10 | const tests = b.addTest("clap.zig"); |
| 12 | tests.setBuildMode(mode); | 11 | tests.setBuildMode(mode); |
| 13 | tests.setTarget(target); | 12 | tests.setTarget(target); |
| 14 | tests.use_stage1 = stage1; | ||
| 15 | test_step.dependOn(&tests.step); | 13 | test_step.dependOn(&tests.step); |
| 16 | 14 | ||
| 17 | const example_step = b.step("examples", "Build examples"); | 15 | const example_step = b.step("examples", "Build examples"); |