Is it necessary to have a full build or are object files enough?

Hello everyone.

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 ?

Thank you.

Hey there.

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.

Thank you for your answer.

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 ?

I am fairly certain the answer is yes – I would recommend you give it a try.

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.