Using a compiler cache
Introduction
A compiler cache speeds up compilation times by caching object files and reusing them on subsequent builds. This even works for complete rebuilds (i.e. deleting the full build-directory). The compiler cache Ccache is automatically used when it is found by CMake.
Install it with your package manager, e.g.:
sudo apt install ccacheUsage on eve
Just load the module:
module load /global/apps/modulefiles/ccache/3.3.3brew install ccacheDownload the Windows x86_64 (binary release)
.
Just extract the archive and put the ccache.exe into the PATH.
You may want to change the cache directory (environment variable CCACHE_DIR) or increase the cache size (e.g. run ccache -M 10G once or set the environment variable CCACHE_MAXSIZE). See the Ccache docs
for configuration instructions.
You can check cache hit statistics with ccache -s.
To disable caching:
cmake . -DOGS_DISABLE_COMPILER_CACHE=ONThis article was written by Lars Bilke. If you are missing something or you find an error please reach out
to us on our forum.
Generated with Hugo 0.164.0
in CI job 825193
|
Last revision: April 20, 2026
Commit: refactor(MeshLib): remove PropertyVector::push_back 870422dde
| Edit this page on