Update the code to the new zig version

Update the code to the breaking change in ziglang commit
60eabc0ec (std.Build.CompileStep: remove run() and install())

Update the zig version in the README.md file.
This commit is contained in:
Manlio Perillo 2023-04-12 18:41:40 +02:00
parent 87c9c29ffc
commit 5d254bb775
3 changed files with 9 additions and 8 deletions

View file

@ -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.2401";
const needed_version_str = "0.11.0-dev.2560";
fn isCompatible() bool {
if (!@hasDecl(builtin, "zig_version") or !@hasDecl(std, "SemanticVersion")) {