nodejs / gyp-next

A fork of the GYP build system for use in the Node.js projects
BSD 3-Clause "New" or "Revised" License
125 stars 69 forks source link

feat: generate compile_commands.json with ninja #228

Closed legendecas closed 3 months ago

legendecas commented 4 months ago

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.

legendecas commented 3 months ago

@cclauss would you mind taking a look again? thank you!

legendecas commented 3 months ago

@cclauss kindly ping, would you mind taking another look at this? Thanks!