aboutsummaryrefslogtreecommitdiff
path: root/src/main.zig
diff options
context:
space:
mode:
authorkcbanner <kcbanner@gmail.com>2024-07-13 19:04:55 -0400
committerkcbanner <kcbanner@gmail.com>2024-07-13 19:04:55 -0400
commit373e53d7c5940c875a3423a6797f7b5d4a7f36c8 (patch)
tree3c43e2df0120e715ec170475a6bb2d49e77a1e8c /src/main.zig
parentbc28454b43b717dee47cf8c1a1abfb7e8ad09a1e (diff)
downloadzig-373e53d7c5940c875a3423a6797f7b5d4a7f36c8.tar.gz
zig-373e53d7c5940c875a3423a6797f7b5d4a7f36c8.zip
Compile: Pass the default --zig-lib-dir along to child processes
main: print the self_exe_path when `findZigLibDirFromSelfExe` fails in all cases
Diffstat (limited to 'src/main.zig')
-rw-r--r--src/main.zig4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main.zig b/src/main.zig
index 39f07e982b..6ccf4f50be 100644
--- a/src/main.zig
+++ b/src/main.zig
@@ -2710,7 +2710,7 @@ fn buildOutputType(
break :d getWasiPreopen("/lib");
} else if (self_exe_path) |p| {
break :d introspect.findZigLibDirFromSelfExe(arena, p) catch |err| {
- fatal("unable to find zig installation directory: {s}", .{@errorName(err)});
+ fatal("unable to find zig installation directory '{s}': {s}", .{ p, @errorName(err) });
};
} else {
unreachable;
@@ -7403,7 +7403,7 @@ fn findTemplates(gpa: Allocator, arena: Allocator) Templates {
fatal("unable to find self exe path: {s}", .{@errorName(err)});
};
var zig_lib_directory = introspect.findZigLibDirFromSelfExe(arena, self_exe_path) catch |err| {
- fatal("unable to find zig installation directory: {s}", .{@errorName(err)});
+ fatal("unable to find zig installation directory '{s}': {s}", .{ self_exe_path, @errorName(err) });
};
const s = fs.path.sep_str;