Re:Zapcc – A caching C++ compiler based on clang
by elteto on Sunday June 17, 2018 @01:29PM
(#17333305)
Bazel is exactly this (and amazingly good at it), a cache of your entire build tree and all its dependencies. But it is a full blown build system that you need to buy into. You can’t bolt it on to whatever you are using like ccache.
Re:Zapcc – A caching C++ compiler based on clang
by floatboth on Sunday June 17, 2018 @05:48PM
(#17334521)
This new zapcc thing seems to be more granular than ccache, it caches individual template instantiations. Bazel can't do that.
Re:Zapcc – A caching C++ compiler based on clang
by jingwen on Monday June 18, 2018 @05:01PM
(#17341668)
Bazel supports persistent compilers with its worker protocol [0]. It's already supported for javac. It may be worthwhile to investigate how well zapcc can integrate with Bazel.
Re:Zapcc – A caching C++ compiler based on clang
by lorenzhs on Sunday June 17, 2018 @01:10PM
(#17333217)
Isn't that what ccache provides? Admittedly it's not perfect but it sounds like it might help your use case. https://ccache.samba.org
Re:Zapcc – A caching C++ compiler based on clang
by floatboth on Sunday June 17, 2018 @05:47PM
(#17334519)
This new zapcc thing seems to be more granular than ccache, it caches individual template instantiations
Re:Zapcc – A caching C++ compiler based on clang
by AstralStorm on Sunday June 17, 2018 @01:24PM
(#17333279)
No, it is close to what LTO, parse caches and precompiled headers provide. No need for daemons to get the same result.
I'd like to see a persistent cache. In-memory doesn't work well for the "occasionally recompile Firefox, LLVM/clang, WebKitGTK, etc." desktop use case...