From f63a3f083def0b2cd26947ebeec566cd199a2532 Mon Sep 17 00:00:00 2001 From: Dylan Date: Wed, 29 May 2024 10:29:28 -0400 Subject: [PATCH] Restore the cache_include path which was removed in error MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Accidently removed a couple lines I didn't mean to 🙈 --- src/build.zig | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/build.zig b/src/build.zig index fb46b86fd..51a8ab7b0 100644 --- a/src/build.zig +++ b/src/build.zig @@ -198,6 +198,9 @@ fn compileRaylib(b: *std.Build, target: std.Build.ResolvedTarget, optimize: std. @panic("Pass '--sysroot \"$EMSDK/upstream/emscripten\"'"); } + const cache_include = std.fs.path.join(b.allocator, &.{ b.sysroot.?, "cache", "sysroot", "include" }) catch @panic("Out of memory"); + defer b.allocator.free(cache_include); + if (comptime builtin.zig_version.minor > 12) { var dir = std.fs.cwd().openDir(cache_include, std.fs.Dir.OpenDirOptions{ .access_sub_paths = true, .no_follow = true }) catch @panic("No emscripten cache. Generate it!"); dir.close();