sccache

Compiler cache that speeds up builds by reusing compiled code

brewmacoslinux
Try with needOr install directly
Source

About

Used as a compiler wrapper and avoids compilation when possible

Commands

sccache

Examples

speed up rust compilation by caching builds$ RUSTC_WRAPPER=sccache cargo build
cache C and C++ compiler output to avoid recompiling$ CC="sccache gcc" CXX="sccache g++" make
check how much disk space the cache is using$ sccache --show-stats
clear all cached compiled files$ sccache --zero-stats
use remote distributed cache for team builds$ sccache --dist-auth=token s3://bucket-name