Using distcc on Mac OS X with Makefiles

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

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

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: