$linuxjunkies
>

sccache

also: sccache cache, mozilla sccache

A distributed compiler cache that speeds up builds by reusing compiled objects across machines. It caches compilation outputs to avoid recompiling the same source code repeatedly.

sccache is a caching compiler wrapper that intercepts compiler invocations (like gcc, clang, or rustc) and stores their outputs in a local or distributed cache. When the same source file is compiled with identical flags, sccache returns the cached object file instead of recompiling, dramatically reducing build times.

It can use local filesystem caching for single machines or connect to distributed backends (S3, Redis, Google Cloud Storage) to share cache entries across a team's build systems. This is especially valuable in CI/CD pipelines and large projects with many developers.

Example: compiling a C file the first time invokes the compiler normally; subsequent compilations with the same source and flags retrieve the pre-compiled object from cache in milliseconds instead of seconds.

Related terms