diff options
| author | Motiejus Jakštys <motiejus@uber.com> | 2023-05-19 10:12:47 +0300 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2024-03-14 09:32:56 -0700 |
| commit | 400145ee3bb0740cc274a75b7c612d799811b5fe (patch) | |
| tree | 01a4303a0d32299630f8a876ecc4d8978f59f408 /lib/std/debug.zig | |
| parent | bc5b09469509fae80e989adc511e2f31aca05dc0 (diff) | |
| download | zig-400145ee3bb0740cc274a75b7c612d799811b5fe.tar.gz zig-400145ee3bb0740cc274a75b7c612d799811b5fe.zip | |
reduce garbage for repeated `zig cc -` calls
Context: user provides `-` to read from stdin instead of a file.
Before: it would create a file in $ZIG_LOCAL_CACHE_DIR/tmp/ for each
invocation and leave it there.
After: it hashes the file contents and renames the file to the hash.
Result: repeated invocations of `zig cc` do not cause so much trash to
be created.
Diffstat (limited to 'lib/std/debug.zig')
0 files changed, 0 insertions, 0 deletions
