我如何知道我的 Rust 编译器正在使用哪个 Windows 工具链? [英] How do I tell which Windows toolchain my Rust compiler is using?

查看:61
本文介绍了我如何知道我的 Rust 编译器正在使用哪个 Windows 工具链?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在我的 Windows 机器上安装 Rust 调试工具.我知道我必须找出我使用的是 Rust 编译器正在使用的 GNU 或 MSVC 工具链,但我不知道如何找到这些信息.

I'm trying to install Rust debugging tools on my Windows machine. I know I have to find if I'm using the GNU or MSVC toolchain my Rust compiler is using, but I don't know how to find this information.

推荐答案

平台工具链为编译器所知.使用 rustc --version --verbose 来查看:

The platform toolchain is known by the compiler. Use rustc --version --verbose to see it:

PS C:\Users\IEUser> rustc --version --verbose
rustc 1.26.0 (a77568041 2018-05-07)
binary: rustc
commit-hash: a7756804103447ea4e68a71ccf071e7ad8f7a03e
commit-date: 2018-05-07
host: x86_64-pc-windows-msvc
release: 1.26.0
LLVM version: 6.0

从这里,我们可以看到我已经安装了 MSVC 风格(host: x86_64-pc-windows-msvc).

From here, we can see that I have installed the MSVC flavor (host: x86_64-pc-windows-msvc).

另见:

这篇关于我如何知道我的 Rust 编译器正在使用哪个 Windows 工具链?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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