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(
36593659 external_system_libs.len != 0)
36603660 {
36613661 if (create_module.libc_installation == null) {
3662 create_module.libc_installation = try LibCInstallation.findNative(.{
3662 create_module.libc_installation = LibCInstallation.findNative(.{
36633663 .allocator = arena,
36643664 .verbose = true,
36653665 .target = target,
3666 });
3666 }) catch |err| {
3667 fatal("unable to find native libc installation: {s}", .{@errorName(err)});
3668 };
36673669
36683670 try create_module.lib_dirs.appendSlice(arena, &.{
36693671 create_module.libc_installation.?.msvc_lib_dir.?,