[OpenWrt-Devel] [PATCH] build: improve ccache support

Michael Jones mike at meshplusplus.com
Thu Jun 4 15:29:20 EDT 2020

> I agree with Felix. Having one ccache directory for multiple repos
> doesn't make much sense to me as most probably they are for different
> platforms. And even if they are for same platform there are more chances
> for ccache corruption and deleting it will affect all those repos. So it
> still can be done with symlink but IMO should be done manually to make
> sure you know what you are doing.
> Also BASEDIR should be changed too, probably, if we want to go that way.
I am already using a shared ccache directory for multiple builds in my
continuous integration system. I'm accomplishing this by patching the build
system to change the directory for the ccache directory.

If it were a .config option, your use-case would be directly supported, as
well as my use-case, without as much custom patching.

I imagine that there are plenty of other organizations which would use the
.config based functionality to customize things to their liking.

If ccache is corrupted there are much larger problems than slowing down
other builds.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.infradead.org/pipermail/openwrt-devel/attachments/20200604/575170e6/attachment.htm>
-------------- next part --------------
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org

More information about the openwrt-devel mailing list