I use disc to build v8. As long as you are sending compile jobs to the same platform it’s fairly trivial. Adding something like:
cc_wrapper="env CCACHE_PREFIX=distcc CCACHE_SLOPPINESS=time_macros ccache”
to
args.gn and configuring the hosts for distcc should do the job.
If you’re cross compiling its and/or the platform executing the build jobs is different it’s a bit more complicated. You’ll need to set DISTCC_CMDLIST to map the compilers on the build server. If you’re intending to use the pump mode (which you’ll likely need as preprocessing on the client will quickly become the bottleneck) you also have to be able to find the system headers on the build server.
I cross compile using a completely different platform and have a document describing the setup but it’s slight specific to my environment (I can’t recall whether I managed to cache on the remote machines or that this wasn’t possible for me. It likely is possible if the platforms are the same). This setup has reduced my compile times from 1-2 hours to 10-15 minutes from clean.
Let me know if you need some help with this.
Kind regards,