glfw: be sure to clone SDKs with symlinks

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
Stephen Gutekanst 2021-07-10 17:26:32 -07:00
parent d3abf7babb
commit 31604cae3f

View file

@ -228,7 +228,7 @@ fn getSdkRoot(allocator: *std.mem.Allocator, comptime name: []const u8) ![]const
if (!try confirmAppleSDKAgreement()) @panic("cannot continue"); if (!try confirmAppleSDKAgreement()) @panic("cannot continue");
} }
try std.fs.cwd().makePath(app_data_dir); try std.fs.cwd().makePath(app_data_dir);
const argv = &[_][]const u8{ "git", "clone", "https://github.com/hexops/" ++ name }; const argv = &[_][]const u8{ "git", "clone", "-c", "core.symlinks=true", "https://github.com/hexops/" ++ name };
const child = try std.ChildProcess.init(argv, allocator); const child = try std.ChildProcess.init(argv, allocator);
child.cwd = app_data_dir; child.cwd = app_data_dir;
child.stdin = std.io.getStdOut(); child.stdin = std.io.getStdOut();