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.


Attachment: 0001-test.sh-add-test-where-arch-is-duplicated-resulting-.patch
Description: Binary data

_______________________________________________
ccache mailing list
ccache@lists.samba.org
https://lists.samba.org/mailman/listinfo/ccache

Reply via email to