authorgravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2020-01-02 11:12:21-05:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2020-01-02 11:12:21-05:00
log7bd80f207147167821634e16983edf9e9b115c9f
tree3c84d74273275493ccba530b9c30c38b4abfae4a
parent3dd067fa2bd3e19abf49462d5c7140c22aac966e
signature Commit is signed but in an unrecognized format.

translate-c tests: print clang compile errors on nonzero exit code


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

test/tests.zig+1-1
...@@ -1512,7 +1512,7 @@ pub const TranslateCContext = struct {...@@ -1512,7 +1512,7 @@ pub const TranslateCContext = struct {
1512 switch (term) {1512 switch (term) {
1513 .Exited => |code| {1513 .Exited => |code| {
1514 if (code != 0) {1514 if (code != 0) {
1515 warn("Compilation failed with exit code {}\n", .{code});1515 warn("Compilation failed with exit code {}\n{}\n", .{ code, stderr_buf.toSliceConst() });
1516 printInvocation(zig_args.toSliceConst());1516 printInvocation(zig_args.toSliceConst());
1517 return error.TestFailed;1517 return error.TestFailed;
1518 }1518 }