Re: CCashe & Xcode?
Re: CCashe & Xcode?
- Subject: Re: CCashe & Xcode?
- From: "Kyle Sluder" <email@hidden>
- Date: Wed, 25 Jul 2007 15:26:46 -0400
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