-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
zig cc -MJ
(for compile_commands.json
) does not work well with multiple files
#9323
Comments
For anyone else running into this and looking for a workaround, |
+1 for this feature. |
+1 |
1 similar comment
+1 |
I would add that this LSP integration issue is the main reason keeping me from integrating into my existing C projects It would really be nice to have clangd or some other LSP work with zig built C projects |
I have builds produce a working compile_commands.json for my zig-built-cpp projects. I do this:
I guess this could be better integrated into Zig's build system, but it works just fine for me without any special support from zig. |
Recently a user made a |
@kassane i have no clue how you found and noticed my little repo but thank you :) I have refined and packaged that functionality for easy use with zig v0.11.0 now: https://github.com/the-argus/zig-compile-commands It doesn't know anything about what |
+1 |
Hey, please check out my PR for this feature: #18391. We can continue the discussion there. Update: @alexrp pointed out in a comment that #18391 doesn't actually address this particular issue. #18391 covers the |
Note how only one file entry is emitted by Zig.
The text was updated successfully, but these errors were encountered: