Re: [ccache] [PATCH] Some patches for Xcode support

2010-06-14 Thread Bernhard Bauer
On Sun, Jun 13, 2010 at 22:32, Joel Rosdahl j...@rosdahl.net wrote: I see. distcc 2.18.3 (the oldest release I can find on distcc.org) seems to know about .mi/.mii. Do you think it's acceptable to upgrade to a newer distcc to fix this? It would be nice to avoid having a workaround for older

Re: [ccache] [PATCH] Some patches for Xcode support

2010-06-14 Thread Joel Rosdahl
On 2010-06-14 19:13, Bernhard Bauer wrote: The bug is actually more subtle: distcc has global variables indicating whether whether it has seen an -x option and the last value of its argument, and forgets to clear them between running multiple jobs on the server, so it assumes an incorrect

Re: [ccache] [PATCH] Some patches for Xcode support

2010-06-13 Thread Joel Rosdahl
On 2010-06-11 16:33, Bernhard Bauer wrote: Also, I added the -x option for compiling preprocessed code again if there was an -x option on the original command line. Otherwise, when compiling Objective-C code on a different machine, distcc wouldn't recognize the code as preprocessed

Re: [ccache] [PATCH] Some patches for Xcode support

2010-06-13 Thread Bernhard Bauer
On Sun, Jun 13, 2010 at 18:38, Joel Rosdahl j...@rosdahl.net wrote: On 2010-06-11 15:18, Bernhard Bauer wrote: I finally got around to rewriting the third patch. I added a special case to process_args that matches distcc's behavior (if the first argument to distcc is neither a source/object

Re: [ccache] [PATCH] Some patches for Xcode support

2010-06-13 Thread Joel Rosdahl
On 2010-06-13 20:22, Bernhard Bauer wrote: On Sun, Jun 13, 2010 at 18:38, Joel Rosdahl j...@rosdahl.net wrote: [...] #!/bin/sh CCACHE_PREFIX=distcc exec ccache $@ That should work, provided PATH is modified to exclude /X, otherwise ccache would call this script again when calling distcc

Re: [ccache] [PATCH] Some patches for Xcode support

2010-06-11 Thread Bernhard Bauer
Also, I added the -x option for compiling preprocessed code again if there was an -x option on the original command line. Otherwise, when compiling Objective-C code on a different machine, distcc wouldn't recognize the code as preprocessed Objective-C. Bernhard. On Fri, Jun 11, 2010 at 15:18,

Re: [ccache] [PATCH] Some patches for Xcode support

2010-06-03 Thread Joel Rosdahl
On 2010-05-25 00:58, Bernhard Bauer wrote: Turns out, the -x option was overriding the language auto-detection based on the filename. I ended up rewriting the -x patch similar to the way you suggested to Dirk, so now it supports properly changing the language for preprocessed files, using a

Re: [ccache] [PATCH] Some patches for Xcode support

2010-05-24 Thread Bernhard Bauer
On Mon, May 17, 2010 at 05:27, Bernhard Bauer bau...@google.com wrote: On Sunday, May 16, 2010, Joel Rosdahl  wrote: On 2010-05-12 15:52, Bernhard Bauer wrote: attached are some patches needed to make compiling under Mac OS X with Xcode/distcc work. Thanks!

Re: [ccache] [PATCH] Some patches for Xcode support

2010-05-17 Thread Bernhard Bauer
On Sunday, May 16, 2010, Joel Rosdahl wrote: On 2010-05-12 15:52, Bernhard Bauer wrote: attached are some patches needed to make compiling under Mac OS X with Xcode/distcc work. Thanks! 0001-Add-Objective-C-to-the-mapping-from-source-files-to-.patch Sure. Applied.

Re: [ccache] [PATCH] Some patches for Xcode support

2010-05-17 Thread DATACOM - Samuel Lucas
On 05/16/2010 12:40 PM, Joel Rosdahl wrote: The patch looks OK, except that it seems that -fpreprocessed was added in GCC 3.0, so GCC 2.95 wouldn't be supported anymore if we add the flag unconditionally. I don't know if anyone still uses GCC 2.95, but maybe we could do it like this instead: