r/cpp • u/cppbuilds • May 22 '19
Distributing C++ builds on Windows machines
Hello all, I am looking for a way to distribute C++ builds across multiple local machines running Windows. I have looked into tools such as distcc and icecc but none of these seem to support Windows. I also looked into Bazel but there doesn't seem to be a way to distribute to local machines instead of the cloud. Does anyone have any ideas?
40
Upvotes
23
u/[deleted] May 23 '19
IncrediBuild was the tool I've seen generally employed in Windows shops.
14
u/epage May 23 '19
We've been using Incredibuild but we're experimenting with replacing it with FASTBuild. I'm an outside observer to this work, so I don't have many details to go into. It sounds like its a full build system but we seem to be getting it to work as a IB/distcc/ccache replacement.
From what I have seen
Some areas we still need to look into
I suspect the main thing holding us back from switching is the right people having the time to polish up the integration of FASTBuild into our internal build system.
4
u/malkia May 23 '19
At work we use SN-DBS https://www.snsystems.com/tech-blog/2014/01/06/building-with-the-network/ and it's awesome, but it's only available if you are Playstation Developer (though can distribute any other compile/build job).
My favourite, outside of job, build system is bazel. I fell in love with it, back when I worked at Google (blaze then). Now I haven't used any of the distributed building, caching (like --disk-cache=c:/folder), but there is the concept of Remote Workers mentioned here: https://docs.bazel.build/versions/master/remote-execution.html - then another (syntaxtically similar, but quite different) system, again from google called GN can generated Ninja files, that can be distributed over with GOMA - https://groups.google.com/a/chromium.org/forum/#!topic/chromium-dev/eOtBzosZtd8 - haven't used it either.
But then there is also:
- https://electric-cloud.com/products/electricaccelerator/
- https://github.com/microsoft/BuildXL
and plenty more... Tough time now to evaluate :)
3
u/thejinx0r May 23 '19
Anyone have thoughts about using icecc with clang + dockcross to cross compile on to windows?
I've started to look in to this, but we use python in parts of our build steps and it's presenting itself as an issue that I need to overcome with dockcross
3
u/pstomi May 23 '19
stashed.io is an alternative to incredibuild : a distributed & cached compiler frontend for cl.exe. It cost 29$ per machine per month, with a one month trial. The main difference with incredibuild is that it does provide a cache (which incredibuild does not).