glfw: correct Apple SDK license prompt

Prior to this the Apple SDK license agreement prompt would appear for 11.3 but
not 12.0 by accident. This fixes the issue.

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
Stephen Gutekanst 2021-11-28 14:20:50 -07:00 committed by Stephen Gutekanst
parent c68a2881e0
commit 8447c2fb2a

View file

@ -132,7 +132,7 @@ fn getSdkRoot(allocator: *std.mem.Allocator, org: []const u8, name: []const u8)
} else |err| return switch (err) {
error.FileNotFound => {
std.log.info("cloning required sdk..\ngit clone https://github.com/{s}/{s} '{s}'..\n", .{ org, name, sdk_root_dir });
if (std.mem.eql(u8, name, "sdk-macos-12.0")) {
if (std.mem.startsWith(u8, name, "sdk-macos-")) {
if (!try confirmAppleSDKAgreement(allocator)) @panic("cannot continue");
}
try std.fs.cwd().makePath(sdk_path_dir);