From 8447c2fb2a62ab5606c733fc983fdae51c947262 Mon Sep 17 00:00:00 2001 From: Stephen Gutekanst Date: Sun, 28 Nov 2021 14:20:50 -0700 Subject: [PATCH] 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 --- glfw/system_sdk.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/glfw/system_sdk.zig b/glfw/system_sdk.zig index 782ec8a5..aee417ef 100644 --- a/glfw/system_sdk.zig +++ b/glfw/system_sdk.zig @@ -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);