mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-04-22 00:22:09 +02:00
ccache: add page (#12152)
Co-authored-by: Vitor Henrique <87824454+vitorhcl@users.noreply.github.com> Co-authored-by: Lena <126529524+acuteenvy@users.noreply.github.com>
This commit is contained in:
parent
576070dd0c
commit
2d0bcd754b
1 changed files with 21 additions and 0 deletions
21
pages/common/ccache.md
Normal file
21
pages/common/ccache.md
Normal file
|
@ -0,0 +1,21 @@
|
|||
# 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 [s]tatistics:
|
||||
|
||||
`ccache --show-stats`
|
||||
|
||||
- [C]lear all cache:
|
||||
|
||||
`ccache --clear`
|
||||
|
||||
- Reset ([z]ero) statistics (but not cache itself):
|
||||
|
||||
`ccache --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}}`
|
Loading…
Add table
Reference in a new issue