Ccache is a compiler cache which accelerates the recompilation of a program.
Like coveragescanner, ccache is a compiler wrapper.
Using the two programs together is a configuration that is neither tested nor supported by Qt.io. We do not believe there will be much performance benefit from using ccache to cache instrumented code.
However, if you really want to use CoverageScanner
with ccache, it is necessary to set the PATH
variable as follows:
Create then (as root user) the ccache wrappers for g++
and gcc
:
Which this configuration, calling gcc
will:
- call CoverageScanner’s
gcc
wrapper, - which calls ccache’s
gcc
wrapper, - which finally calls the real
gcc
binary.