[ccache] How to make ccache not interpret 'multiple' compiler options

NITIN KHOSLA, BLOOMBERG/ 731 LEXIN nkhosla1 at bloomberg.net
Thu Jan 20 13:01:55 MST 2011

Facing an issue with solaris compiler options.
Our solaris compiler command takes many -xflags. 
Command: ccache CC -xcode=pic32 -xdebugformat=stabs  -c -o file.o file.c
[2011-01-20T14:54:50.499872 9962 ] Unsupported language: debugformat=stabs
[2011-01-20T14:54:50.509438 9962 ] Result: unsupported source language

If I remove that flag, it will complain on code=pic32.
I used --ccache-skip but it seems I have to use this BEFORE every flag.
So this will work:
* ccache /bb/util/common/studio12-v4/SUNWspro/bin/CC --ccache-skip -xcode=pic32 --ccache-skip -xdebugformat=stabs -c -o file.o file.c
BUT not this:
* ccache /bb/util/common/studio12-v4/SUNWspro/bin/CC --ccache-skip -xcode=pic32  -xdebugformat=stabs -c -o 1.o 1.c
Is there a way to make it work using ccache-skip?


More information about the ccache mailing list