1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-07-05 05:15:24 +02:00
tldr/pages/common/ccache.md
Managor 5305776d45
*: capitalize the first letter after "Note:" (#16226)
Co-authored-by: Machiavelli <145562237+MachiavelliII@users.noreply.github.com>
2025-05-04 05:15:17 +03:00

21 lines
581 B
Markdown

# 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>.
- Show current cache statistics:
`ccache {{[-s|--show-stats]}}`
- Clear all cache:
`ccache {{[-C|--clear]}}`
- Reset statistics (but not cache itself):
`ccache {{[-z|--zero-stats]}}`
- Compile C code and cache compiled output (to use `ccache` on all `gcc` invocations, see the note above):
`ccache gcc {{path/to/file.c}}`