简体   繁体   English

如何确定我的Rust编译器正在使用哪个Windows工具链?

[英]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.

相关问题 如何使用Yocto为Windows生成工具链? - How do I generate a toolchain for Windows using Yocto? 如何使用 Windows 的 Rust 板条箱将 CompositionTarget 初始化为 null? - How do I initialize a CompositionTarget to null using the Rust Crate for Windows? 我如何告诉逃犯我在Windows上使用Git的路径? - How do I tell fugitive my path to Git on Windows? Windows中的Qt Creator-如何知道使用哪个编译器? - Qt Creator in Windows - How do I know which compiler is being used? 我如何告诉'git tag -s..'(或-u)我的私钥在哪里(Windows 7)? - How do I tell 'git tag -s ..' (or -u) where my private key is (Windows 7)? 我如何在 rust 中的 windows 中为 IDirectSoundBuffer 使用 GetCurrentPosition function? - how do i use GetCurrentPosition function for IDirectSoundBuffer in windows in rust? 使用适用于Linux的Windows子系统在Eclipse上设置Linux gcc工具链/编译器 - Setting up Linux gcc toolchain/compiler on eclipse using the Windows Subsystem for Linux 如何判断我的Perl脚本是否在Windows下运行? - How can I tell if my Perl script is running under Windows? 如何告诉 CMake 在 Windows 上使用 Clang? - How do I tell CMake to use Clang on Windows? 我如何判断 VBA ActiveX 在 Windows 10 上是否被禁用? - How Do I Tell If VBA ActiveX is disabled on Windows 10?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM