Commit d8135c9e6e

emekoi <emekankurumeh@outlook.com>
2019-06-29 00:16:22
forward error code build.zig
1 parent b109155
Changed files (1)
std/build.zig
@@ -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();
             },