2024-02-01 19:31:28 +01:00
# ccache
> C/C++ compiler cache.
> Note: packages usually provide symlinks for compilers in `/usr/lib/ccache/bin`. Prepend this directory to `$PATH` to automatically use `ccache` for them.
> More information: <https://ccache.dev/manual/latest.html>.
2025-03-28 05:26:23 +02:00
- Show current cache statistics:
2024-02-01 19:31:28 +01:00
2025-03-28 05:26:23 +02:00
`ccache {{[-s|--show-stats]}}`
2024-02-01 19:31:28 +01:00
2025-03-28 05:26:23 +02:00
- Clear all cache:
2024-02-01 19:31:28 +01:00
2025-03-28 05:26:23 +02:00
`ccache {{[-C|--clear]}}`
2024-02-01 19:31:28 +01:00
2025-03-28 05:26:23 +02:00
- Reset statistics (but not cache itself):
2024-02-01 19:31:28 +01:00
2025-03-28 05:26:23 +02:00
`ccache {{[-z|--zero-stats]}}`
2024-02-01 19:31:28 +01:00
- Compile C code and cache compiled output (to use `ccache` on all `gcc` invocations, see the note above):
`ccache gcc {{path/to/file.c}}`