diff options
author | Manlio Perillo <manlio.perillo@gmail.com> | 2023-04-30 17:47:16 +0200 |
---|---|---|
committer | Manlio Perillo <manlio.perillo@gmail.com> | 2023-05-01 18:39:54 +0200 |
commit | 69103a3b821d8b8955eac59489b0dabb6f4735ff (patch) | |
tree | 1dd02eb087f01eff8c45233a81acef607f232d82 /src/compat.zig | |
parent | 123fd4b1057783de7b8c9b7b536f61133dbad016 (diff) |
build: add the Exercise.addExecutable method
Currently addExecutable is called 3 times, unnecessarily making the code
more complex.
The method takes as argument the path to the exercises directory.
Additionally, use the new std.Build.ExecutableOptions.link_libc field.
The new field was added in ziglang/zig@adc9b77d5f on 2023-04-13.
Update the required Zig compiler version.
Note that I added the **current** zig version to the changelog, since
the reason for the change is known only to the person updating the
version.
Diffstat (limited to 'src/compat.zig')
-rw-r--r-- | src/compat.zig | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compat.zig b/src/compat.zig index cd7f3e5..42ecb6b 100644 --- a/src/compat.zig +++ b/src/compat.zig @@ -15,7 +15,7 @@ const print = if (@hasDecl(debug, "print")) debug.print else debug.warn; // When changing this version, be sure to also update README.md in two places: // 1) Getting Started // 2) Version Changes -const needed_version_str = "0.11.0-dev.2560"; +const needed_version_str = "0.11.0-dev.2704"; fn isCompatible() bool { if (!@hasDecl(builtin, "zig_version") or !@hasDecl(std, "SemanticVersion")) { |