diff options
| author | Jakub Konka <kubkon@jakubkonka.com> | 2020-11-06 11:57:53 +0100 |
|---|---|---|
| committer | Jakub Konka <kubkon@jakubkonka.com> | 2020-11-06 11:57:53 +0100 |
| commit | ab69b89d528c828e949bb2d2f3632401a2d382fe (patch) | |
| tree | 64156d62331c6d5549e000f6a2d517da1e26df1a /src/link | |
| parent | b7c3ebcb9e3aefbdd82a43c7ab122931787c7805 (diff) | |
| download | zig-ab69b89d528c828e949bb2d2f3632401a2d382fe.tar.gz zig-ab69b89d528c828e949bb2d2f3632401a2d382fe.zip | |
Address review comments
Diffstat (limited to 'src/link')
| -rw-r--r-- | src/link/MachO.zig | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/link/MachO.zig b/src/link/MachO.zig index 391f490c1f..6fbd1265d5 100644 --- a/src/link/MachO.zig +++ b/src/link/MachO.zig @@ -726,7 +726,7 @@ fn linkWithLLD(self: *MachO, comp: *Compilation) !void { if (result.stderr.len != 0) { std.log.warn("unexpected LD stderr: {}", .{result.stderr}); } - if (result.term.Exited != 0) { + if (result.term != .Exited or result.term.Exited != 0) { // TODO parse this output and surface with the Compilation API rather than // directly outputting to stderr here. std.debug.print("{}", .{result.stderr}); |
