Closed
Description
Zig Version
0.10.0-dev.2783+76546b3f8
Steps to Reproduce
Build a very large binary with zig cc
as the C toolchain. In our case, the binary is 584M.
Expected Behavior
Currently it is expected that the Zig cache may grow very large. However, when using an external build system to orchestrate the build and cache the results (in our case Bazel), we have no need for the Zig cache outside "internal" builds (libc stubs etc.). It would be great to have a flag to only cache these internal builds, and not user code.
Actual Behavior
With our 584M binary, the Zig cache is 761M after building from a clean cache.