[KDE Dot News]
 faq
 flatforty
 contribute
 subscribe
 configure
 search
 rdf

 main
 parent


distributed compiling (distcc)
by fast_rizwaan on Sunday 11/Sep/2005, @11:04
Is it possible to build using distccd with scons like "unsermake -p -j4 CXX=distcc"
  Related Links
 ·   Articles on Developer
 ·   Also by fast_rizwaan
 ·   Contact author

Thread Threshold:

The Fine Print: The following comments are owned by whomever posted them.
( Reply )

Re: distributed compiling (distcc)
by Michael Pyne on Sunday 11/Sep/2005, @13:41
scons supports parallel compilation natively (and even does a much better job than automake, about even with unsermake). scons also includes support for notating targets that produce files as a side effect, which can break parallel builds.

As far as overriding CXX that way, I'm not sure, it's easier just to put distcc's gcc symlinks first in the PATH anyways though.
[ Reply To This | View ]
Re: distributed compiling (distcc)
by Ben on Tuesday 10/Jan/2006, @06:39
Yeah, if bksys is anything like scons. (Im talking about scons here because I've been using it for a while now.)

In the toplevel SConstruct file, you can say

env = Environment(
CXX = 'distcc g++',
....
)
or:
env.Replace(CXX = 'distcc g++') # ccache distcc g++ works as well is you don't wnat to use scons caching.

when running scons say: scons -j N where N is the number of jobs you want to use.
It should work better then make -j N
[ Reply To This | View ]
The Fine Print: The previous comments are owned by whomever posted them.
( Reply )

  "Njaard was simply NOT designed for Europe." -- Nikolas Zimmermann
KDE®, "K Desktop Environment", "KDE Dot News", "got the dot?" and the KDE Logo® are trademarks or registered trademarks of KDE e.V. in the European Union, the United States and other countries. All other trademarks and copyrights on this page are owned by their respective owners. Comments are owned by the poster. The rest: Copyright © 2000-2008 KDE e.V. for The KDE Project. For further information or comments on this site, please contact the Webmaster.
[ home | post article | flat forty | subscribe | search | rdf ]