Pretty much the title :D
I already tried to log the compiler invocations using the CodeChecker tool, which LD_PRELOADs a shared library, hooking the exec functions looking for compiler invocations.
Unfortunately, it seems to create an empty json :|
So, I wanted to try your tool out, but I'm pretty new for scons, and I could not make it work.
If I install your tool via pip3 install scons-compiledb, and I try to compile MongoDB with the command python3 buildscripts/scons.py install-mongod --disable-warnings-as-errors --compiledb= it fails to recognize the --compiledb= option.
I also tried to run scons install-mongod ... and scons-compiledb install-mongod ... but failed to recognize both as a command.
Could you give a hint about how to get a compile_commands.json for MongoDB?
Pretty much the title :D
I already tried to log the compiler invocations using the
CodeCheckertool, whichLD_PRELOADs a shared library, hooking the exec functions looking for compiler invocations.Unfortunately, it seems to create an empty json :|
So, I wanted to try your tool out, but I'm pretty new for scons, and I could not make it work.
If I install your tool via
pip3 install scons-compiledb, and I try to compile MongoDB with the commandpython3 buildscripts/scons.py install-mongod --disable-warnings-as-errors --compiledb=it fails to recognize the--compiledb=option.I also tried to run
scons install-mongod ...andscons-compiledb install-mongod ...but failed to recognize both as a command.Could you give a hint about how to get a compile_commands.json for MongoDB?