aboutsummaryrefslogtreecommitdiff
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
commit751b303362f98d8b62364d43cffd4d93034d4e10 (patch)
treeccc63767c201f1bc4c5ddbb337cadd04f9e76de4 /build.zig
parentec543ff49b5cbdc1c8fa3268a155a794ee30af49 (diff)
downloadziglings-751b303362f98d8b62364d43cffd4d93034d4e10.tar.gz
ziglings-751b303362f98d8b62364d43cffd4d93034d4e10.tar.bz2
ziglings-751b303362f98d8b62364d43cffd4d93034d4e10.tar.xz
ziglings-751b303362f98d8b62364d43cffd4d93034d4e10.zip
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;