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:
parent
c68a2881e0
commit
8447c2fb2a
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue