zig/lib/compiler
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
..
aro - Move aroDiagnosticsToErrorBundle to compiler/util.zig 2025-10-09 01:06:09 -04:00
reduce zig reduce: adapt to new Writer API 2025-08-21 11:50:03 -07:00
resinator - Move aroDiagnosticsToErrorBundle to compiler/util.zig 2025-10-09 01:06:09 -04:00
translate-c - Move aroDiagnosticsToErrorBundle to compiler/util.zig 2025-10-09 01:06:09 -04:00
build_runner.zig build runner: remove --prominent-compile-errors, introduce --error-style 2025-10-18 09:28:42 +01:00
libc.zig std.Io: delete GenericReader 2025-08-29 17:14:26 -07:00
objcopy.zig objcopy: delete most of it 2025-07-21 12:32:37 -07:00
reduce.zig Remove usages of deprecatedWriter 2025-09-18 22:39:33 -07:00
std-docs.zig - Rework common translate-c and cImport logic into Compilation.translateC 2025-10-09 01:06:09 -04:00
test_runner.zig std.Build.Step.Run: many enhancements 2025-10-18 09:28:41 +01:00
util.zig - aroDiagnosticsToErrorBundle: fixup not clearing notes after flushing the current error 2025-10-09 13:34:25 -04:00