Git Product home page Git Product logo

Comments (5)

GoogleCodeExporter avatar GoogleCodeExporter commented on July 21, 2024
Distcc can handle that fine.

There's two ways to handle it using distcc.
The recommended approach is to use

   make CC="distcc gcc"

and for your Makefile to refer to $(CC) rather than gcc.
However, if you have existing scripts or Makefiles that have "gcc" hard-coded, 
and
you don't want to change them, there's a solution for that too.
You can use "masquerading".  See the "MASQUERADING" section of the distcc man 
page.
http://distcc.googlecode.com/svn/trunk/doc/web/man/distcc_1.html#TOC_11


Original comment by [email protected] on 1 Oct 2008 at 3:43

  • Changed state: Invalid

from distcc.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 21, 2024
Thanks, but I know the usage CC=distcc~.
The question that I did is 

'may scripts can make dependencies with other compilation commands'

Here is some pseudo code:

1 : if distcc a.c then change variable BVAR of b.c to -1 else BVAR=1
2 : distcc c.c
3 : distcc b.c

If distcc launches those three commands in simultaneously, then 3rd compilaiton
job cannot guarantee its correctness.
How distcc handle the dependency problem?



Original comment by [email protected] on 3 Oct 2008 at 7:25

from distcc.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 21, 2024
Dependency checking is handled by "make".
If you declare the dependencies in your makefile so that
  make -j
works correctly, then
  make -j CC=distcc
should work fine too.
Use of distcc makes no difference to how you should declare the dependencies in 
you makefile.

Original comment by [email protected] on 3 Oct 2008 at 1:23

from distcc.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 21, 2024
Dependency checking is handled by "make".
If you declare the dependencies in your makefile so that
  make -j
works correctly, then
  make -j CC=distcc
should work fine too.
Use of distcc makes no difference to how you should declare the dependencies in 
you makefile.

Original comment by [email protected] on 3 Oct 2008 at 2:16

from distcc.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 21, 2024
Dependency checking is handled by "make".
If you declare the dependencies in your makefile so that
  make -j
works correctly, then
  make -j CC=distcc
should work fine too.
Use of distcc makes no difference to how you should declare the dependencies in 
you makefile.

Original comment by [email protected] on 3 Oct 2008 at 2:16

from distcc.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.