compiledb icon indicating copy to clipboard operation
compiledb copied to clipboard

Support changing directories as part of make command

Open samvasko opened this issue 4 years ago • 0 comments

Sometimes make is called with -C / --directory. This is currently not supported without disabling the strict mode. Following commands results in empty file.

compiledb -v -o compile_commands.json --no-build make -C project/

Current workout is to manually specify the project

compiledb --build-dir=project/ -v -o compile_commands.json --no-build make -C project/

I think this could be feasible as part of the make wrapper.

samvasko avatar May 20 '21 14:05 samvasko