不支持MSVC工具链。请使用GNU工具链 [英] MSVC toolchain is not supported. Please use GNU toolchain

查看:475
本文介绍了不支持MSVC工具链。请使用GNU工具链的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我遇到上述问题时,我试图在



我更新了工具链设置,以使用建议的默认值,例如:





如何解决此问题并获得CLion能够调试Rust代码?



我做了一些搜索,但没有找到一个简单的答案(至少我可以轻松理解一个答案)。



任何帮助将不胜感激。

解决方案

错误消息与Rust工具链有关,如果没有,则需要为Rust安装gnu工具链。

 > rustup工具链安装stable-x86_64-pc-windows-gnu 

然后以最简单的方法解决此问题集将其作为默认工具链

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

这是稳定频道,您可以免费使用每晚或Beta版。


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.

解决方案

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.

这篇关于不支持MSVC工具链。请使用GNU工具链的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆