From fbdea1337114b496b9cc9a0efea8555919aad126 Mon Sep 17 00:00:00 2001 From: iTrooz Date: Wed, 9 Jul 2025 05:03:52 +0200 Subject: [PATCH] sccache: add page (#17061) Co-authored-by: Managor <42655600+Managor@users.noreply.github.com> Co-authored-by: Wiktor Perskawiec Co-authored-by: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com> --- pages/common/sccache.md | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 pages/common/sccache.md diff --git a/pages/common/sccache.md b/pages/common/sccache.md new file mode 100644 index 0000000000..3b6c9a96cd --- /dev/null +++ b/pages/common/sccache.md @@ -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: . + +- 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`