summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Jimmi Holst Christensen2022-12-09 10:49:54 +0100
committerGravatar Jimmi Holst Christensen2022-12-09 10:49:54 +0100
commita5452fd8c4479e53f0a9d0866874b44e5aae35a5 (patch)
tree3cecb1ef229458318f61438c76bb065e0e852b6b
parentHandle change to std.ArrayList(T).toOwnedSlice() (diff)
downloadzig-clap-a5452fd8c4479e53f0a9d0866874b44e5aae35a5.tar.gz
zig-clap-a5452fd8c4479e53f0a9d0866874b44e5aae35a5.tar.xz
zig-clap-a5452fd8c4479e53f0a9d0866874b44e5aae35a5.zip
Update to newest version of zig
-rw-r--r--.github/workflows/main.yml1
-rw-r--r--build.zig2
2 files changed, 0 insertions, 3 deletions
diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml
index eb6d82d..6db22b7 100644
--- a/.github/workflows/main.yml
+++ b/.github/workflows/main.yml
@@ -11,7 +11,6 @@ jobs:
11 matrix: 11 matrix:
12 os: [ubuntu-latest, windows-latest] 12 os: [ubuntu-latest, windows-latest]
13 step: [examples, test] 13 step: [examples, test]
14 compiler: [stage1=true, stage1=false]
15 release: [release-safe=false, release-safe=true, release-fast=true, release-small=true] 14 release: [release-safe=false, release-safe=true, release-fast=true, release-small=true]
16 runs-on: ${{matrix.os}} 15 runs-on: ${{matrix.os}}
17 steps: 16 steps:
diff --git a/build.zig b/build.zig
index 6a128f2..8362715 100644
--- a/build.zig
+++ b/build.zig
@@ -5,13 +5,11 @@ const Builder = std.build.Builder;
5pub fn build(b: *Builder) void { 5pub 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");