handle panics during make() gracefully #14942
Labels
enhancement
Solving this issue will likely involve adding new logic or components to the codebase.
zig build system
std.Build, the build runner, `zig build` subcommand, package management
Milestone
Extracted from #14647.
Currently, if any build steps panic during make(), they dump stack trace to stderr, and the thread is lost. Instead, the stack trace and panic message should be captured as a step error, and a new thread should be spawned to replace the one that died.
Care should be taken to not accidentally capture panics from the build runner itself in this manner.
The text was updated successfully, but these errors were encountered: