Skip to content

Commit d6b22b1

Browse files
authored
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 <>
1 parent 02d98a3 commit d6b22b1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/build.zig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ fn compileRaylib(b: *std.Build, target: std.Build.ResolvedTarget, optimize: std.
204204
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!");
205205
dir.close();
206206

207-
raylib.addIncludePath(.{ .path = cache_include });
207+
raylib.addIncludePath(b.path(cache_include));
208208
},
209209
else => {
210210
@panic("Unsupported OS");

0 commit comments

Comments
 (0)