From 92cc2f41e6027a1e3bec7b3daa01da8dc90a9370 Mon Sep 17 00:00:00 2001 From: Andrew Kelley Date: Wed, 27 Dec 2023 23:55:15 -0700 Subject: [PATCH] CLI: fix compilation on Windows --- src/main.zig | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/main.zig b/src/main.zig index 1470653f1e..e026e3d7ac 100644 --- a/src/main.zig +++ b/src/main.zig @@ -3659,11 +3659,13 @@ fn createModule( external_system_libs.len != 0) { if (create_module.libc_installation == null) { - create_module.libc_installation = try LibCInstallation.findNative(.{ + create_module.libc_installation = LibCInstallation.findNative(.{ .allocator = arena, .verbose = true, .target = target, - }); + }) catch |err| { + fatal("unable to find native libc installation: {s}", .{@errorName(err)}); + }; try create_module.lib_dirs.appendSlice(arena, &.{ create_module.libc_installation.?.msvc_lib_dir.?,