c++cbuild

How to setup a shared ccache


How can I setup a shared ccache without falling into a permissions problem?

I would like to run a nightly or CI build with latest changes and share all created binaries throughout the R&D using a large ccache repository.


Solution

  • The easiest solution: create a new group (e.g. "devel"), and make all developers members of it. Give read/write permissions to that group on the directory hierarchy where the cache is maintained. The developers will also need to fix their umask.