Update to latest zig 0.12.0dev while keeping 0.11.0 compatibility (#3715)

* update build.zig for latest zig 0.12.0dev while still allowing 0.11.0

* update examples/build.zig and add nicer message for type mismatch
This commit is contained in:
freakmangd 2024-01-11 13:48:37 -05:00 committed by GitHub
parent a820c37ab2
commit 482722d881
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 57 additions and 11 deletions

View file

@ -1,7 +1,7 @@
const std = @import("std");
const raylib = @import("src/build.zig");
// This has been tested to work with zig 0.11.0
// This has been tested to work with zig 0.11.0 and zig 0.12.0-dev.2075+f5978181e
pub fn build(b: *std.Build) void {
raylib.build(b);
}