diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2022-09-13 14:10:13 -0700 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2022-09-13 14:10:13 -0700 |
| commit | fda6d44778f3faf53c66945a0db65be68113416f (patch) | |
| tree | 56d5a1888b773308399ecfd54dd345f9673af26e /src/zig_clang.cpp | |
| parent | c25ce5bba0d00283ad4de9077dba5a8d5255b619 (diff) | |
| download | zig-fda6d44778f3faf53c66945a0db65be68113416f.tar.gz zig-fda6d44778f3faf53c66945a0db65be68113416f.zip | |
zig cc: do not enable the cache for link operations
This commit makes `zig cc` match the equivalent behavior of
`zig build-exe` with regards to caching. That is - it will cache
individual .c to .o compilations (with the usual exceptions), but will
always repeat the linking process so that incremental linking has a
chance to happen.
Perhaps a future enhancement will provide a way to get the old behavior,
but I suspect this new behavior will be preferred by everyone, because
it is closer to what C compilers do. Note that the old behavior can be
obtained by switching to `zig build-exe` instead of `zig cc` and using
the `--enable-cache` parameter.
Closes #12317
Diffstat (limited to 'src/zig_clang.cpp')
0 files changed, 0 insertions, 0 deletions
