Versions Compared


  • This line was added.
  • This line was removed.
  • Formatting was changed.


Code Block
# Install the ccache package (this example works on Ubuntu)
sudo apt-get install ccache

# Make sure you have a high limit on your max ccache size to ensure it is effective
ccache --max-size=50G

Note: If you work on the same machine locally and remotely, make sure you use the same environment. ssh client can send through environment variables (and will do it by default for some, e.g. $LC_CTYPE), which is included by ccache for hashing and causes a cache miss even if the environment variable does not affect the build and the artifact is already cached.

For more information how to control the sent/received environment variables with ssh config:

Ninja - speeds up incremental builds