diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2023-12-27 23:55:15 -0700 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2024-01-01 19:49:08 -0700 |
| commit | 92cc2f41e6027a1e3bec7b3daa01da8dc90a9370 (patch) | |
| tree | cf46770d8cf633e33ca011ce9a822c9042449a41 /src/main.zig | |
| parent | 659e043a34e1b5b24cb83ce5569d7ee295eb27ad (diff) | |
| download | zig-92cc2f41e6027a1e3bec7b3daa01da8dc90a9370.tar.gz zig-92cc2f41e6027a1e3bec7b3daa01da8dc90a9370.zip | |
CLI: fix compilation on Windows
Diffstat (limited to 'src/main.zig')
| -rw-r--r-- | src/main.zig | 6 |
1 files 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.?, |
