On Tue, Sep 05, 2023 at 08:42:34AM +0200, Landry Breuil wrote:
> Le Mon, Sep 04, 2023 at 05:13:19PM +0200, Landry Breuil a écrit :
> > Le Mon, Sep 04, 2023 at 04:58:49PM +0200, Caspar Schutijser a écrit :
> > > Hi,
> > > 
> > > I started porting sccache <https://github.com/mozilla/sccache/>,
> > > a ccache-like tool that a.o. supports many storage backends but
> > > also (more importantly) caching Rust compilation objects. I hope that
> > > eventually we can use something like USE_SCCACHE for Rust projects
> > > (WIP, untested diff for bsd.port.mk below).
> > > 
> > > The attached port does not build yet and I can't immediately find
> > > out how to fix it (trace of build failure below). I'm sending it
> > > to the list just in case someone else is interested.
> > 
> > it fails because it looks for -lzstd but nothing tells it where to find
> > it (eg missing -L/usr/local/lib somewhere id say)
> 
> fixed version with WANTLIB/LDEP/DESCR, with the help of tb and semarie
> on icb.

Thanks! That looks much better. With this new version and the
bsd.port.mk diff that I sent earlier, I was able to use USE_SCCACHE=Yes
and see the second compilation of the benchmarks/hyperfine port
(a Rust port) being much faster. So it seems like it actually works.
Later I'll test it with a more complicated port, like one of the
Mozillas.

Now we "just" need updates to bsd.port.mk.5 and then I think it would
be close to committable shape. I may have a look at that today if time
permits.

Caspar

Reply via email to