Le Wed, Nov 08, 2023 at 04:25:47PM +0100, Caspar Schutijser a écrit : > On Mon, Nov 06, 2023 at 07:45:06AM +0000, Klemens Nanni wrote: > > On Tue, Sep 05, 2023 at 12:11:56PM +0200, Caspar Schutijser wrote: > > > 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 > > > > > > > Did this go anywhere? > > devel/sccache could be imported independently of bsd.port.mk bits, no? > > The last tarball looks fine to me, I was just trying to use this for > > local development. > > The version landry@ sent indeed looked pretty good. In the attached > tarball, there's the following changes: I took MAINTAINER, I updated > sccache to version 0.7.1 and I used the modcargo-gen-crates-licenses > make target to generate crates.inc. > > OK to import, or comments?
ok and thanks !