Is it also possible to have multiple command lines using the build-wrapper, as long as you only run the scanner once?
Hi @merlin-s,
no, you should have one build-wrapper call which eventually call a script with multiple build commands.
1 Like
Thank you @mpaladin
For our use case most source files would be compiled several times (partially with different compiler flags). Is this use case supported? I could not find anything in the documentation.
Hi @merlin-s,
unfortunately multi-configuration analysis is not supported. See this topic too: Analysing C code with #defines.
Ticket created to improve the analyzer documentation to mention multi-configuration analysis: https://jira.sonarsource.com/browse/CPP-2697.