Using distcc on Mac OS X with Makefiles

By eile

Using distcc on OS X for make-based projects (as opposed to XCode) is really easy. distcc enables distributed builds using other Macs in your local network.

Here is what I do to speed up the compilation of Equalizer:

[Enable distcc compilation in the XCode preferences on each machine]

eile% cat ~/.distcc/hosts
localhost
MacOne
MacTwo
MacThree

eile% setenv CXX “distcc /usr/bin/g++”

eile% make -j8

Replace MacOne, MacTwo, MacThree with the machines available to you, and ‘-j8′ with the amount of CPU cores available. Enjoy!

Leave a Reply