Replies: 2 comments 1 reply
-
|
Beta Was this translation helpful? Give feedback.
1 reply
-
没有为什么,gcc 和 clang 同时存在的情况下,目前默认优先会去找 gcc ,你又没配置指名非要 clang 如果你想要 clang ,那就按上面说的,自己切到 clang toolchain 去。
那个只是 xmake-vscode 那个插件自动设置了 clangd 作为 lsp 的 backend 而已,跟编译器用哪个 没有必然关系 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
我的cpp环境为VSCode + Clangd + XMake + LLDB。
settings.json如下:
我想请教一下,为什么在不指定clang编译器的情况下,生成的
compile_commands.json
里面编译器是gcc而不是clang。xmake configuration中的compile commands backend
是clangd
:Beta Was this translation helpful? Give feedback.
All reactions