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