Restore the cache_include path which was removed in error

Accidently removed a couple lines I didn't mean to 🙈
This commit is contained in:
Dylan 2024-05-29 10:29:28 -04:00 committed by GitHub
parent 1c7407e113
commit f63a3f083d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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();