Using scons as build command for build-wrapper-win-x86-64 found 0 c file

SonarQube Enterprise 9.5
build-wrapper-win-x86-64 4.7
My project is using complier gcc-linaro-aarch64-linux.
I tried a simple project who only contains 3 c file and a simple Sconstruct file,the command “build-wrapper-win-x86-64 scons” worked success and created all the .o files,build-wraper can found all c files infomation.
But when I use a complex Sconstruct file to build my real project who has 6 folder, the command"build-wrapper-win-x86-64 scons" still worked success and created all the .o files,but the build-wraper.log is much shorter and can not find any c files infomation,
The two projects share the sample complier,Two Sconstruct defines the same CC.
Where is wrong?

Hi @liuxl ,

could you make sure that you are running a clean build when wrapping it with the build-wrapper?
Something like:

scons --clean
build-wrapper-win-x86-64 --out-dir cfamily-compilation-database scons