ccache is a wrapper around C/C++ compilers and related tools which caches the result of compilation based on the file contents, so if you compile source code, then delete / redownload / unpack to the same location and recompile, the second compilation will be cached.
It would be useful to have something similar in rund, probably as a mode enabled with a switch. Its effect would be:
- Include contents of files when calculating the cache directory
- Stop looking at timestamps when deciding whether something should be rebuilt
- Make the compilation target always be the cache directory, even with
-od/-of, and then copy artifacts out if necessary.
ccache also has a maximum cache size limit (upon hitting which it starts deleting old results), but that can be managed outside of rund or added later.
What do you think?
ccache is a wrapper around C/C++ compilers and related tools which caches the result of compilation based on the file contents, so if you compile source code, then delete / redownload / unpack to the same location and recompile, the second compilation will be cached.
It would be useful to have something similar in rund, probably as a mode enabled with a switch. Its effect would be:
-od/-of, and then copy artifacts out if necessary.ccache also has a maximum cache size limit (upon hitting which it starts deleting old results), but that can be managed outside of rund or added later.
What do you think?