Help needed: append the build-wrapper-linux-x86-64 --out-dir

Dear expertise:

I am a software engineer from GE, our team is integration the Sonar on our existing code.

During the integration we encounter a problem with the .json and .log file under --out-dir directory.

Base on our build design, we expect to add the build-wrapper-linux-x86-64 before gcc, such as:

build-wrapper-linux-x86-64 --out-dir ./ gcc -o a.o a.cpp
build-wrapper-linux-x86-64 --out-dir ./ gcc -o b.o b.cpp
build-wrapper-linux-x86-64 --out-dir ./ gcc -o c.o c.cpp
……
build-wrapper-linux-x86-64 --out-dir ./ gcc -o n.o n.cpp

But it seems we always only get the SA result for n.cpp.
Here goes my question, is there any parameter or configuration to tell the wrapper append other than replace the .json and .log file under the out-dir? In this situation we can get all SA result for all cpp files.

Thanks for your attention in advance, expect to get your expertise suggestion.

A post was split to a new topic: Help needed: append the build-wrapper-linux-x86-64 –out-dir