authorgravatar for dtoadq@gmail.comAODQ <dtoadq@gmail.com> 2021-06-10 01:50:24-04:00
committergravatar for git@vexu.euVeikka Tuominen <git@vexu.eu> 2021-06-10 12:03:54+03:00
logd368fd435f4c96dac4a064fe71b948007e8b11a5
tree8331b89b138345ad223686a0af1c77b6c99664f5
parent916b645fc1a17f46bab35b54832e037fcf2ab92b

Print path on libc/libc-path fatal error


1 files changed, 2 insertions(+), 2 deletions(-)

src/main.zig+2-2
...@@ -1820,7 +1820,7 @@ fn buildOutputType(...@@ -1820,7 +1820,7 @@ fn buildOutputType(
18201820
1821 if (libc_paths_file) |paths_file| {1821 if (libc_paths_file) |paths_file| {
1822 libc_installation = LibCInstallation.parse(gpa, paths_file) catch |err| {1822 libc_installation = LibCInstallation.parse(gpa, paths_file) catch |err| {
1823 fatal("unable to parse libc paths file: {s}", .{@errorName(err)});1823 fatal("unable to parse libc paths file at path {s}: {s}", .{ paths_file, @errorName(err) });
1824 };1824 };
1825 }1825 }
18261826
...@@ -2494,7 +2494,7 @@ pub fn cmdLibC(gpa: *Allocator, args: []const []const u8) !void {...@@ -2494,7 +2494,7 @@ pub fn cmdLibC(gpa: *Allocator, args: []const []const u8) !void {
2494 }2494 }
2495 if (input_file) |libc_file| {2495 if (input_file) |libc_file| {
2496 var libc = LibCInstallation.parse(gpa, libc_file) catch |err| {2496 var libc = LibCInstallation.parse(gpa, libc_file) catch |err| {
2497 fatal("unable to parse libc file: {s}", .{@errorName(err)});2497 fatal("unable to parse libc file at path {s}: {s}", .{ libc_file, @errorName(err) });
2498 };2498 };
2499 defer libc.deinit(gpa);2499 defer libc.deinit(gpa);
2500 } else {2500 } else {