且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

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

更新时间:2023-09-24 15:30:46

平台工具链为编译器所知.使用 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).

另见: