aboutsummaryrefslogtreecommitdiff
path: root/src/link
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2024-11-26 13:56:12 -0800
committerAndrew Kelley <andrew@ziglang.org>2024-11-26 13:56:40 -0800
commit11bf2d92de5f335d4e07358d99f26fae08493f12 (patch)
treebf32c9bbacdaaa17eeba1112508737e34b00bc1e /src/link
parent68b3f5086609b8e904edcec9ef2201cb54bc7200 (diff)
downloadzig-11bf2d92de5f335d4e07358d99f26fae08493f12.tar.gz
zig-11bf2d92de5f335d4e07358d99f26fae08493f12.zip
diversify "unable to spawn" failure messages
to help understand where a spurious failure is occurring
Diffstat (limited to 'src/link')
-rw-r--r--src/link/Wasm.zig4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/link/Wasm.zig b/src/link/Wasm.zig
index ee8e638080..7d00aa5a64 100644
--- a/src/link/Wasm.zig
+++ b/src/link/Wasm.zig
@@ -3722,7 +3722,7 @@ fn linkWithLLD(wasm: *Wasm, arena: Allocator, tid: Zcu.PerThread.Id, prog_node:
child.stderr_behavior = .Inherit;
const term = child.spawnAndWait() catch |err| {
- log.err("unable to spawn {s}: {s}", .{ argv.items[0], @errorName(err) });
+ log.err("failed to spawn (passthrough mode) LLD {s}: {s}", .{ argv.items[0], @errorName(err) });
return error.UnableToSpawnWasm;
};
switch (term) {
@@ -3743,7 +3743,7 @@ fn linkWithLLD(wasm: *Wasm, arena: Allocator, tid: Zcu.PerThread.Id, prog_node:
const stderr = try child.stderr.?.reader().readAllAlloc(arena, std.math.maxInt(usize));
const term = child.wait() catch |err| {
- log.err("unable to spawn {s}: {s}", .{ argv.items[0], @errorName(err) });
+ log.err("failed to spawn LLD {s}: {s}", .{ argv.items[0], @errorName(err) });
return error.UnableToSpawnWasm;
};