diff --git a/build.zig b/build.zig index 1aedc58fe..2dc6258af 100644 --- a/build.zig +++ b/build.zig @@ -1,19 +1,9 @@ const std = @import("std"); const builtin = @import("builtin"); -/// Minimum supported version of Zig -const min_ver = "0.16.0-dev.3013+abd131e33"; - const emccOutputDir = "zig-out" ++ std.fs.path.sep_str ++ "htmlout" ++ std.fs.path.sep_str; const emccOutputFile = "index.html"; -comptime { - const order = std.SemanticVersion.order; - const parse = std.SemanticVersion.parse; - if (order(builtin.zig_version, parse(min_ver) catch unreachable) == .lt) - @compileError("Raylib requires zig version " ++ min_ver); -} - pub const emsdk = struct { const zemscripten = @import("zemscripten"); @@ -489,7 +479,7 @@ fn addExamples( const all = b.step(module, "All " ++ module ++ " examples"); const module_subpath = b.pathJoin(&.{ "examples", module }); - var dir = try std.Io.Dir.cwd().openDir(b.graph.io, b.pathFromRoot(module_subpath), .{ .iterate = true }); + var dir = try b.build_root.handle.openDir(b.graph.io, module_subpath, .{ .iterate = true }); defer dir.close(b.graph.io); var iter = dir.iterate(); diff --git a/build.zig.zon b/build.zig.zon index ee5a84c68..dd25fde73 100644 --- a/build.zig.zon +++ b/build.zig.zon @@ -1,7 +1,7 @@ .{ .name = .raylib, - .version = "5.6.0-dev", - .minimum_zig_version = "0.15.1", + .version = "6.0.0", + .minimum_zig_version = "0.16.0", .fingerprint = 0x13035e5cb8bc1ac2, // Changing this has security and trust implications.