RE: CCashe & Xcode?
RE: CCashe & Xcode?
- Subject: RE: CCashe & Xcode?
- From: Stephen Shaw <email@hidden>
- Date: Wed, 25 Jul 2007 15:51:56 -0700
- Acceptlanguage: en-US
- Thread-topic: CCashe & Xcode?
Thanks, I've given that a try and I'm getting further, now I think I'm running into issue with the '-x c++' option not being understood by ccache, so I'm not getting any cache hits. I've seen some comments on the list before about this, but does anyone have any current work arounds?
Thanks,
Stephen
-----Original Message-----
From: Kyle Sluder [mailto:email@hidden]
Sent: Wednesday, July 25, 2007 12:27 PM
To: Stephen Shaw
Cc: email@hidden
Subject: Re: CCashe & Xcode?
Xcode is expecting those variables to be paths to the compiler, so
it's quoting them appropriately. Since it's so common for there to be
spaces in paths on OS X, this is the right thing to do. You might
want to create a simple shell script somewhere that invokes ccache
like so:
#!/bin/bash
exec /usr/bin/ccache /usr/bin/gcc-4.0 $*
Then change your compiler setting to point to that file. And ditch
those variable assignments in your .bash_login, they will seriously
screw up Make.
--Kyle Sluder
On 7/25/07, Stephen Shaw <email@hidden> wrote:
>
>
>
>
> I was looking over the lists and saw some tips on getting this to work, but
> I'm still having trouble. I was wondering if anyone had the steps to get
> this to work?
>
>
>
> Here's what I've done:
>
> 1) Install ccache to /usr/bin/ccache
>
> 2) Opened my .bash_login and added the following lines:
>
> a. 'export CC="/usr/bin/ccache /usr/bin/gcc" '
>
> b. 'export CXX="/usr/bin/ccache /usr/bin/g++" '
>
> c. 'export CPLUSPLUS="/usr/bin/ccache /usr/bin/gcc-4.0" '
>
>
>
> When I do a build, xcode seems to execute the following command:
>
> "/usr/bin/ccache\ /usr/bin/gcc-4.0 -x
> c++-h...ltawlbcutnxufinccwjwhsxvyk/myproject.pch.gch"
>
>
>
> Which I get an error "-bach: /usr/bin/ccache /usr/bin/gcc-4.0: No such file
> or directory"
>
>
>
> If I copy the line from the xcode build and execute it from the command line
> , but removing the '\ ' from between the ccache & gcc, it works (except the
> .gch file doesn't exist since it's temporary).
>
>
>
> I.e. "/usr/bin/ccache /usr/bin/gcc-4.0 -x
> c++-h...ltawlbcutnxufinccwjwhsxvyk/myproject.pch.gch"
>
>
>
> Has anyone else run into this or been able to get ccache to work?
>
>
>
> Thanks,
>
> Stephen Shaw
> _______________________________________________
> 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
>
_______________________________________________
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