ninja supports generating compile_commands.json from ninja files. The generated compile_commands.json resolves the generated product path as well, which is not supported in the gyp.generator.compile_commands_json.
To generate compile_commands.json with ninja, define generator flag -Gcompile_commands when running gyp.
ninja supports generating
compile_commands.json
from ninja files. The generatedcompile_commands.json
resolves the generated product path as well, which is not supported in thegyp.generator.compile_commands_json
.To generate
compile_commands.json
with ninja, define generator flag-Gcompile_commands
when running gyp.