mirror of
https://github.com/ziglang/zig.git
synced 2024-12-15 07:40:13 +00:00
translate-c tests: print clang compile errors on nonzero exit code
This commit is contained in:
parent
3dd067fa2b
commit
7bd80f2071
@ -1512,7 +1512,7 @@ pub const TranslateCContext = struct {
|
||||
switch (term) {
|
||||
.Exited => |code| {
|
||||
if (code != 0) {
|
||||
warn("Compilation failed with exit code {}\n", .{code});
|
||||
warn("Compilation failed with exit code {}\n{}\n", .{ code, stderr_buf.toSliceConst() });
|
||||
printInvocation(zig_args.toSliceConst());
|
||||
return error.TestFailed;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user