authorgravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2023-12-27 23:55:15-07:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2024-01-01 19:49:08-07:00
log92cc2f41e6027a1e3bec7b3daa01da8dc90a9370
treecf46770d8cf633e33ca011ce9a822c9042449a41
parent659e043a34e1b5b24cb83ce5569d7ee295eb27ad

CLI: fix compilation on Windows


1 files changed, 4 insertions(+), 2 deletions(-)

src/main.zig+4-2
...@@ -3659,11 +3659,13 @@ fn createModule(...@@ -3659,11 +3659,13 @@ fn createModule(
3659 external_system_libs.len != 0)3659 external_system_libs.len != 0)
3660 {3660 {
3661 if (create_module.libc_installation == null) {3661 if (create_module.libc_installation == null) {
3662 create_module.libc_installation = try LibCInstallation.findNative(.{3662 create_module.libc_installation = LibCInstallation.findNative(.{
3663 .allocator = arena,3663 .allocator = arena,
3664 .verbose = true,3664 .verbose = true,
3665 .target = target,3665 .target = target,
3666 });3666 }) catch |err| {
3667 fatal("unable to find native libc installation: {s}", .{@errorName(err)});
3668 };
36673669
3668 try create_module.lib_dirs.appendSlice(arena, &.{3670 try create_module.lib_dirs.appendSlice(arena, &.{
3669 create_module.libc_installation.?.msvc_lib_dir.?,3671 create_module.libc_installation.?.msvc_lib_dir.?,