LazyPath.path has been deprecated, using b.path() (#3983)

This works in zig 0.12, LazyPath.path has been removed in zig 0.13

Co-authored-by: CosmicBagel <>
This commit is contained in:
CosmicBagel 2024-05-15 15:20:34 -06:00 committed by GitHub
parent 02d98a3e44
commit d6b22b17ae
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -204,7 +204,7 @@ fn compileRaylib(b: *std.Build, target: std.Build.ResolvedTarget, optimize: std.
var dir = std.fs.openDirAbsolute(cache_include, std.fs.Dir.OpenDirOptions{ .access_sub_paths = true, .no_follow = true }) catch @panic("No emscripten cache. Generate it!"); var dir = std.fs.openDirAbsolute(cache_include, std.fs.Dir.OpenDirOptions{ .access_sub_paths = true, .no_follow = true }) catch @panic("No emscripten cache. Generate it!");
dir.close(); dir.close();
raylib.addIncludePath(.{ .path = cache_include }); raylib.addIncludePath(b.path(cache_include));
}, },
else => { else => {
@panic("Unsupported OS"); @panic("Unsupported OS");