Error: toolchain 'nightly-x86_64-pc-windows-msvc' does not support components


Hey, running
D:\Rust Fixed\testdll>rustup target add i686-pc-windows-msvc
gives me the error
error: toolchain ‘nightly-x86_64-pc-windows-msvc’ does not support components
I have an x64 system. Trying to build a 32 bit DLL. Anyone here have any experience with this?


What is the output of ‘rustc -Vv’? This error should indicate an old (quite old!) compiler, from before they supported the ‘target add’ command. If it really is that old then ‘rustup update nightly’ should get you onto a newer toolchain. If you want to be on an old toolchain then installing the i686 toolchain with ‘rustup install i686-pc-windows-msvc’ is a workaround.