mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-07-18 16:15:24 +02:00
sccache: add page (#17061)
Co-authored-by: Managor <42655600+Managor@users.noreply.github.com> Co-authored-by: Wiktor Perskawiec <wiktor@perskawiec.cc> Co-authored-by: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com>
This commit is contained in:
parent
58cb0d3018
commit
fbdea13371
1 changed files with 21 additions and 0 deletions
21
pages/common/sccache.md
Normal file
21
pages/common/sccache.md
Normal file
|
@ -0,0 +1,21 @@
|
|||
# sccache
|
||||
|
||||
> A fast C/C++/Rust compiler cache.
|
||||
> Composed of a client and a server, both running on the machine.
|
||||
> More information: <https://manned.org/sccache>.
|
||||
|
||||
- Show compilation statistics:
|
||||
|
||||
`sccache {{[-s|--show-stats]}}`
|
||||
|
||||
- Run `gcc` (or any compiler command) through `sccache`:
|
||||
|
||||
`sccache gcc {{path/to/file.c}}`
|
||||
|
||||
- Start `sccache` server in the foreground and print logs:
|
||||
|
||||
`sccache --stop-server; SCCACHE_LOG=trace SCCACHE_START_SERVER=1 SCCACHE_NO_DAEMON=1 sccache`
|
||||
|
||||
- Ask scheduler for distributed compilation status:
|
||||
|
||||
`sccache --dist-status`
|
Loading…
Add table
Reference in a new issue