Re: Xcode and ccache
Re: Xcode and ccache
- Subject: Re: Xcode and ccache
- From: Steve Checkoway <email@hidden>
- Date: Thu, 30 Mar 2006 17:45:08 -0800
On Mar 17, 2006, at 5:51 AM, Clark Cox wrote:
I was wondering if anyone knows how to get Xcode to use ccache as it's
compiler. I've installed ccache, and put appropriate links in my path.
This works perfectly for things built via make, or by directly calling
gcc from the commandline. However, seeing as Xcode calls the compiler
with an absolute path "/usr/bin/gcc", distcc is never being called
when building projects via xcodebuild or from the Xcode GUI.
Since nobody responded, I was wondering if you came up with a good
way to do this. I've recently been looking at distcc and ccache and I
was hoping that I could set up Xcode to use ccache.
So, back to my question; has anybody gotten this to work, and if so,
could they provide me the steps to do so myself. Or, in a more general
sense, how does one replace the compiler used by Xcode on a global
basis (I know I could go into each target's settings and add a build
rule that associates source code files with a custom script, but I'd
rather have a global solution so that I can still collaborate on
projects with others who do not share my setup without having to edit
the project after every checkout, and before every commit)
I haven't tried this yet, but it might be possible to move the
various /usr/bin/gcc (and cc, g++, c++, and the versioned ones as
well) to a separate directory and replace the ones there with a
wrapper program. It would probably be simple to write but I'm not
sure it'd be a good idea. Does anyone have any thoughts on this?
- Steve
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden