MSVC toolchain is not supported. Please use GNU toolchain

无人久伴 提交于 2020-04-10 07:48:08

问题


I was trying to debug Rust in CLion when I was greeted with the aforementioned

I updated my toolchain setting to use the suggested default as such:

How can I fix this issue and get CLion to be able to debug Rust code?

I did some searching but haven't found a simple answer (at at least one I can understand easily).

Any help would be greatly appreciated.


回答1:


Error message is related about Rust toolchain, if you haven't you need to install gnu toolchain for Rust.

> rustup toolchain install stable-x86_64-pc-windows-gnu

Then after easiest way to solve this problem set it as default toolchain

> rustup default stable-x86_64-pc-windows-gnu

This is for stable channel you are free to use nightly or beta.




回答2:


As well as Ömer Erden's answer it is worth pointing out that Jetbarins now has an article about how to configure Clion for Rust complete with some tips on what settings are applicable to Rust development.

Debugging Rust Code in CLion



来源:https://stackoverflow.com/questions/57584111/msvc-toolchain-is-not-supported-please-use-gnu-toolchain

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!