zig/lib/std/Build
mlugg 75adbf40ca
build runner: remove --prominent-compile-errors, introduce --error-style
The new `--error-style` option decides how build failures are printed.
The default mode "verbose" prints all context including the step graph
fragment and the failed command (if any). The alternative mode "minimal"
prints only the failed step itself, and does not print the failed
command. There are also "verbose_clear" and "minimal_clear" modes, which
have the distinction that the output is cleared (through ANSI escape
codes) between updates, preventing different updates from being confused
in the output. If `--error-style` is not specified, the environment
variable `ZIG_BUILD_ERROR_STYLE` is checked before falling back to the
default of "verbose"; this means the value can effectively be chosen
system-wide since it is generally a personal preference.

Also introduced is a `--multiline-errors` option which decides how to
print errors which span multiple lines. By default, non-initial lines
are indented to align with the first. Alternatively, a leading newline
can be printed to align everyting on the first column, or no special
treatment can be applied, resulting in misaligned output. Again, there
is an environment variable (`ZIG_BUILD_MULTILINE_ERRORS`) to specify a
preferred default if the option is not explicitly provided.

Resolves: #23472
2025-10-18 09:28:42 +01:00
..
Cache std.fmt: delete deprecated APIs 2025-08-31 12:49:18 -07:00
Step std.Build: separate errors from failed commands 2025-10-18 09:28:42 +01:00
Watch std.Build.Watch: add macOS implementation based on FSEventStream 2025-08-02 05:13:13 +01:00
abi.zig std.Build: implement unit test timeouts 2025-10-18 09:28:39 +01:00
Cache.zig std.Build.Cache: clarify parameter is sub path, not basename 2025-09-24 20:01:19 -07:00
Fuzz.zig build runner: remove --prominent-compile-errors, introduce --error-style 2025-10-18 09:28:42 +01:00
Module.zig std.ArrayList: make unmanaged the default 2025-08-11 15:52:49 -07:00
Step.zig std.Build: separate errors from failed commands 2025-10-18 09:28:42 +01:00
Watch.zig Merge pull request #24661 from alichraghi/spv4 2025-08-07 20:55:50 -07:00
WebServer.zig std.Build: implement unit test timeouts 2025-10-18 09:28:39 +01:00