-
-
Notifications
You must be signed in to change notification settings - Fork 821
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
Modules from packages not added when generating vs projects #6070
Comments
vs project generator does not support modules now. |
gcc15 也不支持吗. 我用gcc15 编译的模块工程, 生成compile_commands.json, clangd 也不识别, 用的 xmake v2.9.7+20250122, 如果我使用clang-20 编译, 然后它生成 compile_commands.json,clangd 可以识别
|
这个你要问 clangd 了 |
You have to ask clangd about this |
你看我上面贴了 gcc 和 clang 生成 compile_commands.json, 它们俩 完全不同, |
You see, I posted GCC and CLANG to generate compile_commands.json. They are completely different. Still calling the third party's things |
这里只负责生成,不同编译器对应的 flags 和实现机制都不同,生成的 compile_commands 结果肯定都不同 ,至于 clangd 是否支持,你要去问 clangd 。。可以自行对比生成的结果。 |
Here are only responsible for generating. The FLAGS corresponding to different compilers and the implementation mechanism are different. The result generated by the generated compile_commands must be different. As for whether Clangd supports, you have to ask Clangd. Essence You can compare the result of generating. |
好,我刚才用cmake + ninja 编译然后生成compile_commands , clangd 也不识别, 看样子是clangd 的问题 |
Okay, I just used cmake + ninja to compile and generate compile_commands. Clangd doesn’t recognize it either. It seems to be a problem with clangd. |
Xmake Version
2.9.7
Operating System Version and Architecture
Windows
Describe Bug
Modules from packages are not added when generating vs projects (both vs and vsxmake). Local modules and modules from other targets work as expected, building also works.
Expected Behavior
Modules from packages are recognized in vs projects.
Project Configuration
Additional Information and Error Logs
Compilation works:
The text was updated successfully, but these errors were encountered: