rustup
rustup copied to clipboard
Windows GNU: Check if there is ABI
Problem you are trying to solve
When using x86_64-pc-windows-msvc
there is a check to see if the ABI dependencies are installed and if there are not, it allows the user to install VS and the dependencies (#2954). This is not available for x86_64-pc-windows-gnu
Solution you'd like
I would like to have the same behavior for x86_64-pc-windows-gnu
, rustup
could check the requirements and ask the user to install them if they are not present.
Notes
No response
Rust already bundles the necessary components when using the -gnu
toolchain if you're only building pure Rust code - those requirements you linked are only necessary for building C code. This is in contrast to the -msvc
toolchain where you need the VC++ build tools even for pure Rust code. No harm in being more helpful though.
Hi! Sorry if I am getting something wrong, but if I do the installation with the x86_64-pc-windows-gnu
rustup-init
script or if I use the standalone installer for the same triple and I try to build any crate I get:
error occurred: Failed to find tool. Is `gcc.exe` installed? (see https://github.com/alexcrichton/cc-rs#compile-time-requirements for help)
A similar error happens for x86_64-pc-windows-msvc
if you don't install Visual Studio C++ Build tools when prompted to do so. What I would expect for x86_64-pc-windows-gnu
is a similar prompt where the user could install compile time requirements.
Thanks in advance, and let me know if I am missing something!