美文网首页
Windows 环境下使用 Clion 调试 Rust 提示 M

Windows 环境下使用 Clion 调试 Rust 提示 M

作者: 靈紋 | 来源:发表于2020-08-07 15:54 被阅读0次

Clion 调试 Rust 的时候出现如下提示,按照提示说明是因为不支持 MSVC 工具链。

image.png

Rust 在 1.2 版本开始默认使用 MSVC 工具链,可以重装 Rust 并选择使用 GNU 工具链来解决这个问题。

执行 rustup 的时候选择自定义安装,询问 host triple 的时候填写 x86_64-pc-windows-gnu。

image.png

ps:据说 Clion 2020.2版本开始支持 MSVC,未做测试。

参考资料:
Rust Edition Guide - MSVC toolchain support

相关文章

网友评论

      本文标题:Windows 环境下使用 Clion 调试 Rust 提示 M

      本文链接:https://www.haomeiwen.com/subject/rpxirktx.html