rustup icon indicating copy to clipboard operation
rustup copied to clipboard

Windows GNU: Check if there is ABI

Open SergioGasquez opened this issue 2 years ago • 1 comments

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

SergioGasquez avatar Oct 11 '22 18:10 SergioGasquez

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.

Diggsey avatar Oct 11 '22 18:10 Diggsey

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!

SergioGasquez avatar Oct 18 '22 08:10 SergioGasquez