[ccache] [PATCH] Add support for coverage (compiling for gcov)

Anders Björklund anders at itension.se
Tue Jan 6 15:21:31 MST 2015


We've added support for gcc --coverage (including -fprofile-arcs and -ftest-coverage) to ccache.

You can find the patches, for the maint versions, over on https://github.com/itension/ccache:



It works by storing the .gcno file in the cache (next to the .o file), when using --coverage.

It also needs to hash the absolute path to the .gcda file, that is created later at runtime.

Please include these in ccache, under GNU General Public License v3. I am their author.


More information about the ccache mailing list