Skip to content

[Question] How can I create a compile_commands.json for mongoDB? #2

@steakhal

Description

@steakhal

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions