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

compile_commands.json generation? #1118

Closed
GoldsteinE opened this issue Oct 22, 2022 · 2 comments
Closed

compile_commands.json generation? #1118

GoldsteinE opened this issue Oct 22, 2022 · 2 comments

Comments

@GoldsteinE
Copy link

Hi! I was wondering if there any way to use cxx with clangd?

@dtolnay
Copy link
Owner

dtolnay commented Oct 22, 2022

This would be a question for the cc crate. Cxx-build is ordinary and simple as far as use of the cc crate.

@dtolnay dtolnay closed this as completed Oct 22, 2022
@HKalbasi
Copy link

For other people who come here by search, bear -- cargo build will generate the compile_commands.json, but you need something to trigger the build script of cxx (e.g. changing some cpp file, or using cargo clean) before it.

But it is still very manual. The cc related issue is rust-lang/cc-rs#497

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

3 participants