Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: generate compile_commands.json with ninja #228

Merged
merged 2 commits into from
Apr 1, 2024

Conversation

legendecas
Copy link
Member

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 legendecas marked this pull request as ready for review March 8, 2024 07:29
@legendecas legendecas marked this pull request as draft March 8, 2024 07:37
@legendecas legendecas marked this pull request as ready for review March 8, 2024 07:45
pylib/gyp/generator/ninja_test.py Outdated Show resolved Hide resolved
pylib/gyp/generator/ninja_test.py Outdated Show resolved Hide resolved
pylib/gyp/generator/ninja_test.py Outdated Show resolved Hide resolved
@legendecas
Copy link
Member Author

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

@legendecas
Copy link
Member Author

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

@legendecas legendecas merged commit 7b20b46 into nodejs:main Apr 1, 2024
20 checks passed
@legendecas legendecas deleted the ninja-compiledb branch April 1, 2024 10:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants