[ccache] ccache and Sun Studio
joel at rosdahl.net
Tue Sep 14 09:20:31 MDT 2010
On 2010-09-14 12:23, Mehturt wrote:
> I tried to use ccache 3.0.1 with Sun's Studio 12 compiler.
> It seems to work just fine, except for some -x parameters that the
> compiler has, such as -xarch, -xtarget etc..
> The ccache thinks of the -x parameter as the language setting, which
> works only for gcc.
A possible workaround is to add --ccache-skip before each troublesome
parameter. Or rather: It should have been possible, but it's buggy in
3.0.1. It will be fixed in 3.1.
> So is ccache supposed to work with Sun's Studio 12? Should I create a
> bug report for this?
I didn't know about this specific clash, but there are others very
similar described in this bug report:
You can create a new bug report if you want, or just leave a comment in
As noted in a comment to the bug report, I think that a good way to
handle this is to make ccache perform compiler detection (and cache the
results of it) so that it knows to (in this case) leave -xarch and
friends alone. I guess it's also feasible to introduce a ccache setting
that let's you select which kind of compiler you have, but it would be
nicer to handle it transparently.
More information about the ccache