commit 92cc2f41e6027a1e3bec7b3daa01da8dc90a9370 (tree)
parent 659e043a34e1b5b24cb83ce5569d7ee295eb27ad
Author: Andrew Kelley <andrew@ziglang.org>
Date: Wed, 27 Dec 2023 23:55:15 -0700
CLI: fix compilation on Windows
Diffstat:
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git 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.?,