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

Inferring node to binary mapping from compile_commands.json #27

Closed
mjrogozinski opened this issue Aug 31, 2024 · 1 comment
Closed

Inferring node to binary mapping from compile_commands.json #27

mjrogozinski opened this issue Aug 31, 2024 · 1 comment

Comments

@mjrogozinski
Copy link

The compile_commands.json contains information about binary names, directories and source files.
It can be used instead of manually specifying the mapping.

Everyone who uses neovim for C++ will have compile_commands.json generated anyway.

@alfaix
Copy link
Owner

alfaix commented Sep 26, 2024

Hey, unfortunately I don't think this is as easy without the build tool support. Compile commands do not have link commands, and that's what you would need to map from a file to an executable.

There's a ticket for integrating with build tools (likely CMake only, bazel seems to be a lot less plugin-friendly), and I'll add a hook for customization. I'll close this issue as a duplicate.

@alfaix alfaix closed this as not planned Won't fix, can't repro, duplicate, stale Sep 26, 2024
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

No branches or pull requests

2 participants