Skip to content

handle panics during make() gracefully #14942

@andrewrk

Description

@andrewrk

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementSolving this issue will likely involve adding new logic or components to the codebase.zig build systemstd.Build, the build runner, `zig build` subcommand, package management

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions