[ccache] Passing plain compiler-name to distcc (via CCACHE_PREFIX)?
joel at rosdahl.net
Mon Jun 6 13:02:48 MDT 2011
On 2011-06-06 17:10, David Gardner wrote:
> Currently ccache expands the specified compiler command before calling
> the prefixed compiler. This causes calls such as :
> /usr/bin/distcc /usr/bin/gcc foo.c <options>
> ..to be made. This stops distcc from being able to use the local path
> on the remote machine to find a suitable gcc. Is it possible to have
> ccache pass the original non-absolute name for the compiler command?
> [...] I am happy to make a patch to add this as an option and to
> submit it to the list for review.
Making it optional would certainly be possible, but I'm not sure that
the use case is common enough to warrant such special-casing. I think
you should be able to solve it by letting the prefix command be a
wrapper script like this instead:
exec distcc "$compiler" "$@"
What do you think?
More information about the ccache