I am trying to analyze a project for a Microchip microcontroller.
Because XC8 is not recognized I started writting a Makefile to compile my project using gcc.
Is there a point to have a full build of the project up to the binary file ? Or is generating the object files enough ?
SonarQube doesn’t care much about the compiled binary, but about compilation commands that are being used during compilation (which you typically only get from a full build). This is the critical information that’s needed during analysis.
On recent versions of SonarQube, using a compilation database is also supported.
So, if I compile all my files with all the compilation commands but stop at the objects files and do not proceed further with the linking, SonarQube should have all it needs to perfom the analysis, is that it ?