glfw: fix compilation with latest zig master (#574)

See 0b1dd845d9
This commit is contained in:
Kami Development 2022-10-14 17:55:15 +02:00 committed by GitHub
parent b4799cfd5a
commit ef5d8b12e7

View file

@ -210,7 +210,7 @@ fn determineSdkRoot(allocator: std.mem.Allocator, org: []const u8, name: []const
ensureGit(allocator); ensureGit(allocator);
// If the SDK exists, return it. Otherwise, clone it. // If the SDK exists, return it. Otherwise, clone it.
if (std.fs.openDirAbsolute(sdk_root_dir, .{})) { if (std.fs.openDirAbsolute(sdk_root_dir, .{})) |_| {
const current_revision = try getCurrentGitRevision(allocator, sdk_root_dir); const current_revision = try getCurrentGitRevision(allocator, sdk_root_dir);
if (!std.mem.eql(u8, current_revision, revision)) { if (!std.mem.eql(u8, current_revision, revision)) {
// Update the SDK to the target revision. This may be either forward or backwards in // Update the SDK to the target revision. This may be either forward or backwards in