cellml / libcellml

Repository for libCellML development.
https://libcellml.org
Apache License 2.0
17 stars 21 forks source link

Add support for `buildcache` #959

Closed agarny closed 3 years ago

agarny commented 3 years ago

We currently provide support for clcache on Windows (even though it's officially discontinued) and ccache on Linux/macOS.

Another compiler caching tool is buildcache which works on Windows, Linux and macOS. Some benchmarks show that it is on par with ccache (and better than clcache in my personal experience) if used with direct mode enabled (i.e. BUILDCACHE_DIRECT_MODE set to true). (When it comes to the cache size, like ccache it can be compressed, e.g., by having BUILDCACHE_COMPRESS_FORMAT set to ZSTD.)

So, here I would recommend adding support buildcache and making it the preference, should clcache/ccache also be present.

FWIW, on my MacBook Pro: