[英]How do I tell which Windows toolchain my Rust compiler is using?
I'm trying to install Rust debugging tools on my Windows machine. 我正在尝试在Windows计算机上安装Rust调试工具。 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. 我知道我必须确定我是否正在使用Rust编译器正在使用的GNU或MSVC工具链,但是我不知道如何找到此信息。
Use rustup show
to see your active toolchain which contains the name of the platform you're using. 使用rustup show
查看活动的工具链,其中包含您正在使用的平台的名称。 For example, on my Windows PC, I see this: 例如,在Windows PC上,我看到以下内容:
$ rustup show
Default host: x86_64-pc-windows-msvc
installed toolchains
--------------------
stable-x86_64-pc-windows-msvc (default)
nightly-x86_64-pc-windows-msvc
active toolchain
----------------
stable-x86_64-pc-windows-msvc (default)
rustc 1.26.1 (827013a31 2018-05-25)
Which says that my active toolchain is msvc
. 表示我的活动工具链是msvc
。
The platform toolchain is known by the compiler. 平台工具链是编译器已知的。 Use rustc --version --verbose
to see it: 使用rustc --version --verbose
可以看到它:
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
From here, we can see that I have installed the MSVC flavor ( host: x86_64-pc-windows-msvc
). 从这里,我们可以看到我已经安装了MSVC样式( host: x86_64-pc-windows-msvc
)。
See also: 也可以看看:
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.