summaryrefslogtreecommitdiffstatshomepage
path: root/build.zig
diff options
context:
space:
mode:
authorDave Gauer <dave@ratfactor.com>2021-04-21 09:47:16 -0400
committerDave Gauer <dave@ratfactor.com>2021-04-21 09:47:16 -0400
commitbe2b98f4047d81804d0d65e73a25828420e6a26c (patch)
treeccc63767c201f1bc4c5ddbb337cadd04f9e76de4 /build.zig
parent17a22adce10e016489feb243587f0bf80cdd2f76 (diff)
add ex069 comptime 4
Diffstat (limited to 'build.zig')
-rw-r--r--build.zig9
1 files changed, 8 insertions, 1 deletions
diff --git a/build.zig b/build.zig
index fe80a3e..5610997 100644
--- a/build.zig
+++ b/build.zig
@@ -344,6 +344,10 @@ const exercises = [_]Exercise{
.main_file = "068_comptime3.zig",
.output = "Minnow (1:32, 4 x 2)\nShark (1:16, 8 x 5)\nWhale (1:1, 143 x 95)\n",
},
+ .{
+ .main_file = "069_comptime4.zig",
+ .output = "s1={ 1, 2, 3 }, s2={ 1, 2, 3, 4, 5 }, s3={ 1, 2, 3, 4, 5, 6, 7 }",
+ },
};
/// Check the zig version to make sure it can compile the examples properly.
@@ -353,7 +357,10 @@ fn checkVersion() bool {
return false;
}
- const needed_version = std.SemanticVersion.parse("0.8.0-dev.1065") catch unreachable;
+ // When changing this version, be sure to also update README.md in two places:
+ // 1) Getting Started
+ // 2) Version Changes
+ const needed_version = std.SemanticVersion.parse("0.8.0-dev.1983") catch unreachable;
const version = std.builtin.zig_version;
const order = version.order(needed_version);
return order != .lt;