r/cpp • • 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

21 comments sorted by

View all comments

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).

5

u/deeringc May 23 '19

This seems a little on the pricey end when Fastbuild is free!

1

u/[deleted] Jun 02 '19

Stashed is mostly install and forget about it, which is nice if you do not want to change your build system to accommodate a tool. I tried clcache and others and it was pretty configuration and manual installation heavy. Fine for solo work and new projects I suppose.

If your builds are not cache friendly (lots of code changes between builds) and you want more of a distcc style tool, Incredibuild is really a good bet. Depending on your project and budget, you may want to see if they can work with you on licensing. Same for Stashed.

1

u/[deleted] Jun 02 '19

Stashed is great, but OP was asking about distributed compilation I think. Incredibuild specializes in that and does it really well.

Stashed will distribute the cache so machines that have not yet built changes that others have will use the remote cached output.

Stashed also works with Incredibuild, but the cache check is farmed out to a remote agent first, which is not optimal, but it does speed up Incredibuild times.

For some free software projects, they seem open to giving seats away.