Commit 9e3189f1f4

emekoi <emekankurumeh@outlook.com>
2019-07-03 20:17:43
forward error code on non-exits
1 parent d8135c9
Changed files (1)
std/build.zig
@@ -773,10 +773,10 @@ pub const Builder = struct {
                 }
                 return stdout.toOwnedSlice();
             },
-            else => {
+            .Signal, .Stopped, .Unknown => |code| {
                 warn("The following command terminated unexpectedly:\n");
                 printCmd(null, argv);
-                std.debug.panic("exec failed");
+                std.os.exit(@truncate(u8, code));
             },
         }