forward error code build.zig

This commit is contained in:
emekoi 2019-06-28 17:16:22 -05:00
parent b109155528
commit d8135c9e6e

View File

@ -769,7 +769,7 @@ pub const Builder = struct {
if (code != 0) {
warn("The following command exited with error code {}:\n", code);
printCmd(null, argv);
std.debug.panic("exec failed");
std.os.exit(@truncate(u8, code));
}
return stdout.toOwnedSlice();
},