update to Zig 2024.05

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
Stephen Gutekanst 2024-06-02 13:38:21 -07:00 committed by Stephen Gutekanst
parent 65d8137ad6
commit 8da44b719e
3 changed files with 6 additions and 6 deletions

2
.gitignore vendored
View file

@ -9,7 +9,7 @@
# Cheers! # Cheers!
# -andrewrk # -andrewrk
zig-cache/ .zig-cache/
zig-out/ zig-out/
/release/ /release/
/debug/ /debug/

View file

@ -8,13 +8,13 @@ pub fn build(b: *std.Build) !void {
var module = b.addModule("mach-glfw", .{ var module = b.addModule("mach-glfw", .{
.target = target, .target = target,
.optimize = optimize, .optimize = optimize,
.root_source_file = .{ .path = "src/main.zig" }, .root_source_file = b.path("src/main.zig"),
}); });
const test_step = b.step("test", "Run library tests"); const test_step = b.step("test", "Run library tests");
const main_tests = b.addTest(.{ const main_tests = b.addTest(.{
.name = "glfw-tests", .name = "glfw-tests",
.root_source_file = .{ .path = "src/main.zig" }, .root_source_file = b.path("src/main.zig"),
.target = target, .target = target,
.optimize = optimize, .optimize = optimize,
}); });
@ -35,6 +35,6 @@ pub fn build(b: *std.Build) !void {
comptime { comptime {
const supported_zig = std.SemanticVersion.parse("0.13.0-dev.351+64ef45eb0") catch unreachable; const supported_zig = std.SemanticVersion.parse("0.13.0-dev.351+64ef45eb0") catch unreachable;
if (builtin.zig_version.order(supported_zig) != .eq) { if (builtin.zig_version.order(supported_zig) != .eq) {
@compileError(std.fmt.comptimePrint("unsupported Zig version ({}). Required Zig version 2024.3.0-mach: https://machengine.org/about/nominated-zig/#202430-mach", .{builtin.zig_version})); @compileError(std.fmt.comptimePrint("unsupported Zig version ({}). Required Zig version 2024.5.0-mach: https://machengine.org/about/nominated-zig/#202450-mach", .{builtin.zig_version}));
} }
} }

View file

@ -12,8 +12,8 @@
}, },
.dependencies = .{ .dependencies = .{
.glfw = .{ .glfw = .{
.url = "https://pkg.machengine.org/glfw/98b4bca1542156dcedc6ab87b365a7ac61d1b77b.tar.gz", .url = "https://pkg.machengine.org/glfw/e6f377baed70a7bef9fa08d808f40b64c5136bf6.tar.gz",
.hash = "12202b5b936e38c0ebf384de6b3c8e7771b1f17ba952c3fc8e3a0c852fc4710b537a", .hash = "1220c15e66c13f9633fcfd50b5ed265f74f2950c98b1f1defd66298fa027765e0190",
}, },
}, },
} }