diff options
| author | Veikka Tuominen <git@vexu.eu> | 2023-06-09 19:15:32 -0700 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2023-06-16 15:17:59 -0700 |
| commit | 0f5aff34414bcb024443540fe905039f3783803a (patch) | |
| tree | bbdb0dd69fd60c68703ac313c26e2f4ed00da5d3 /src | |
| parent | 537104fd9d84d94abad3e36d3cd781be4397e299 (diff) | |
| download | zig-0f5aff34414bcb024443540fe905039f3783803a.tar.gz zig-0f5aff34414bcb024443540fe905039f3783803a.zip | |
zig build: add option to only print failed steps
The motivating case for this is that currently when a test fails
the CI log will include ~5k lines of listing steps that succeeded.
Diffstat (limited to 'src')
| -rw-r--r-- | src/main.zig | 42 |
1 files changed, 22 insertions, 20 deletions
diff --git a/src/main.zig b/src/main.zig index aedca80d26..b245b357ca 100644 --- a/src/main.zig +++ b/src/main.zig @@ -4000,8 +4000,8 @@ pub const usage_libc = \\ Parse a libc installation text file and validate it. \\ \\Options: - \\ -h, --help Print this help and exit - \\ -target [name] <arch><sub>-<os>-<abi> see the targets command + \\ -h, --help Print this help and exit + \\ -target [name] <arch><sub>-<os>-<abi> see the targets command \\ ; @@ -4068,7 +4068,7 @@ pub const usage_init = \\ directory. \\ \\Options: - \\ -h, --help Print this help and exit + \\ -h, --help Print this help and exit \\ \\ ; @@ -4166,16 +4166,18 @@ pub const usage_build = \\ Build a project from build.zig. \\ \\Options: - \\ -freference-trace[=num] How many lines of reference trace should be shown per compile error - \\ -fno-reference-trace Disable reference trace - \\ -fsummary Print the build summary, even on success - \\ -fno-summary Omit the build summary, even on failure - \\ --build-file [file] Override path to build.zig - \\ --cache-dir [path] Override path to local Zig cache directory - \\ --global-cache-dir [path] Override path to global Zig cache directory - \\ --zig-lib-dir [arg] Override path to Zig lib directory - \\ --build-runner [file] Override path to build runner - \\ -h, --help Print this help and exit + \\ -freference-trace[=num] How many lines of reference trace should be shown per compile error + \\ -fno-reference-trace Disable reference trace + \\ --summary [mode] Control the printing of the build summary + \\ all Print the build summary in its entirety + \\ failures (Default) Only print failed steps + \\ none Do not print the build summary + \\ --build-file [file] Override path to build.zig + \\ --cache-dir [path] Override path to local Zig cache directory + \\ --global-cache-dir [path] Override path to global Zig cache directory + \\ --zig-lib-dir [arg] Override path to Zig lib directory + \\ --build-runner [file] Override path to build runner + \\ -h, --help Print this help and exit \\ ; @@ -4576,13 +4578,13 @@ pub const usage_fmt = \\ recursively. \\ \\Options: - \\ -h, --help Print this help and exit - \\ --color [auto|off|on] Enable or disable colored error messages - \\ --stdin Format code from stdin; output to stdout - \\ --check List non-conforming files and exit with an error - \\ if the list is non-empty - \\ --ast-check Run zig ast-check on every file - \\ --exclude [file] Exclude file or directory from formatting + \\ -h, --help Print this help and exit + \\ --color [auto|off|on] Enable or disable colored error messages + \\ --stdin Format code from stdin; output to stdout + \\ --check List non-conforming files and exit with an error + \\ if the list is non-empty + \\ --ast-check Run zig ast-check on every file + \\ --exclude [file] Exclude file or directory from formatting \\ \\ ; |
