Hi, there is ccache functionality in OBS already, you can configure this with a project config setting. Buildflags: useccache:chromium Buildflags: useccache:ceph This is transparent to the built code... Perhaps this can be enhanced to also use sccache? Ciao, Marcus On Mon, Aug 30, 2021 at 01:05:44AM +0000, William Brown wrote:
Hi all,
Recently I've done some work on osc and obs-build to add support for sccache [0]. sccache is similar to ccache, and in addition to C/C++, it can also cache the outputs of Rust builds. This has already been shown to be able to reduce build times for rust (compiler) by more than 50% on rebuilds, and for many rust projects it can reduce times by 75%. In 389-ds which is a mixed C/C++/Rust project, it can reduce compile times significantly.
The integration in obs-build now also supports storing the cache on a file:/// url, which allows a fully offline cache to be used for builders.
What would be the steps needed to allow sccache to be present in OBS so that Rust projects could use this functionality?
[0] https://github.com/mozilla/sccache
-- Sincerely,
William Brown
Senior Software Engineer, Identity and Access Management SUSE Labs, Australia