diff options
| author | Stephen Gutekanst <stephen@hexops.com> | 2022-02-20 11:58:58 -0700 |
|---|---|---|
| committer | Stephen Gutekanst <stephen@hexops.com> | 2022-02-20 14:44:39 -0700 |
| commit | 2bd10f4db98fd313c6743477ad36b139652a8dd5 (patch) | |
| tree | 9c935031ca3027b48e763a63b7fb7cd7b6f582b6 /test/behavior/array.zig | |
| parent | e41d4df93cf78b7ecccd959472dc653dc089f8aa (diff) | |
| download | zig-2bd10f4db98fd313c6743477ad36b139652a8dd5.tar.gz zig-2bd10f4db98fd313c6743477ad36b139652a8dd5.zip | |
std: have Builder use response files if zig build args exceed OS limits
In Mach engine we're seeing command line arguments to `zig build-lib`
exceed the 32 KiB limit that Windows imposes, due to the number of
sources and compiler flags we must pass in order to build gpu-dawn.
This change fixes the issue by having `Builder` check if the arguments
to a `zig build-*` command are >30 KiB and, if so, writes the arguments
to a file `zig-cache/args/<SHA2 of args>`. Then the command invocation
merely becomes `zig build-lib @<that file>`.
Fixes #10693
Fixes hexops/mach#167
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
Diffstat (limited to 'test/behavior/array.zig')
0 files changed, 0 insertions, 0 deletions
