aboutsummaryrefslogtreecommitdiff
path: root/src/codegen
diff options
context:
space:
mode:
authorStephen Gutekanst <stephen@hexops.com>2022-02-20 11:58:58 -0700
committerStephen Gutekanst <stephen@hexops.com>2022-02-20 14:44:39 -0700
commit2bd10f4db98fd313c6743477ad36b139652a8dd5 (patch)
tree9c935031ca3027b48e763a63b7fb7cd7b6f582b6 /src/codegen
parente41d4df93cf78b7ecccd959472dc653dc089f8aa (diff)
downloadzig-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 'src/codegen')
0 files changed, 0 insertions, 0 deletions