[distcc] distcc with cc1

Dara Hazeghi dhazeghi at yahoo.com
Sat Mar 15 22:19:16 GMT 2003

--- Martin Pool <mbp at sourcefrog.net> wrote:
> On 14 Mar 2003, Dara Hazeghi <dhazeghi at yahoo.com>
> wrote:
> > I read the earlier thread about using distcc with
> cc1.
> > My problem is similar. I have a _slow_ macos x
> box,
> > which I want to compile for. Unfortunately,
> there's no
> > way currently to build a cross assembler to macos
> x. I
> > can, however, build a cross cc1. I'd like to be
> able
> > to use this with distcc, to further speed up
> builds. I
> > saw from the other thread that modifying makefiles
> is
> > an option. But given that mozilla has hundreds of
> > makefiles, I'd really rather not have to resort to
> > that. So any suggestions. I certain don't like
> feature
> > creep, but an option to do this directly with
> distcc
> > would be very helpful. Any thoughts? Thanks,
> Why not just do a regular cross-compile?

I don't quite undestand what you mean by "regular
cross-compile". There is no MacOS X assembler that can
run on Linux, so that's not really possible.

> Aside from that it ought to be straightforward to
> change distcc to use
> a -S option remotely, and then run 'as' locally. 

Well, the problem is that I must use cc1. So I can't
even really use -S.

In short the process would have to be:
preprocess on local machine.
compile to assembly remotely.
assemble locally
link locally.

Lest you ask me whether it's actually as speed win, I
must say that I don't know, but given that g++ is dog
slow on macos x, I suspect it should be a significant

Of course, if I had other macos x boxes, I could just
use distcc as-is...

> I'm sure if this is
> sufficiently useful to merge into distcc.

Cool. Hopefully I can work it out then...
> You could do this from a small shell script I think.

Yeah. That's actually probably the best option. But, I
guess I'll find out.

Thanks for the feedback,


Do you Yahoo!?
Yahoo! Web Hosting - establish your business online

More information about the distcc mailing list