[ccache] Duplicated -arch option results in "unsupported compiler option"

Gautier Pelloux-Prayer gautier at damsy.net
Tue Oct 20 12:43:40 UTC 2015


Hi,

When invoking ccache with twice -arch option, it fails to use its cache and "unsupported compiler option" counter increment.

Basically doing:

ccache clang test.c -arch i386 # cache miss: 1 - OK
ccache clang test.c -arch i386 # cache hit (direct): 1 - OK
ccache clang test.c -arch i386 -arch i386 # unsupported compiler option: 1 - NOK actually expected cache hit (direct): 2

Similarly, invoking it twice with -Wall option results in cache not being used:

ccache clang test.c -Wall # cache miss: 1 - OK
ccache clang test.c -Wall # cache hit (direct): 1 - OK
ccache clang test.c -Wall -Wall # cache miss: 2 - NOK actually expected cache hit (direct): 2

I know that passing multiple times same options is invalid, but when build process is complex it's quite hard not to have some of them...

Cheers,

Gautier PP.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-test.sh-add-test-where-arch-is-duplicated-resulting-.patch
Type: application/octet-stream
Size: 1757 bytes
Desc: not available
URL: <http://lists.samba.org/pipermail/ccache/attachments/20151020/c20fd4ef/0001-test.sh-add-test-where-arch-is-duplicated-resulting-.obj>


More information about the ccache mailing list