Hi,
from practical experience with this, it seems that the build wrapper does not recognize “ccache” as compiler. It only works if ccache, ultimately, has to call the compiler. Then the call will be recognized. If the result is cached already and the compiler is not invoked, SonarQube ignores the source file Can this be fixed?
As Massimo stated, ccache is supported, even if the compiler is not invoked. It should work as long as the first parameter to ccache is a supported compiler.
If you are facing issues with it, please, do not hesitate to open a new thread describing what problems you are facing, the SonarQube version that you are using (if relevant), etc. so we may have a detailed look.
I can say with confidence that, unfortunately, it did not work for us and only actual compiler calls were considered (I checked the scanner logs). However, we have since (meaning 5 days ago stumbled upon the fact that SonarQube supports reading a JSON compilation database. This is a much better alternative for us, since it is easily generated by CMake and not prone to all problems that having to wrap stuff with the build wrapper is likely to have So thanks for following up, but for us, I guess the case is closed now