-
Notifications
You must be signed in to change notification settings - Fork 1k
Description
The README says:
Finally, the host may be specified as a target triple. This is most
useful for installing a 32-bit compiler on a 64-bit platform, or for
installing the [MSVC-based toolchain] on Windows. For example:$ rustup install stable-x86_64-pc-windows-msvcFor convenience, elements of the target triple that are omitted will be
inferred, so the above could be written:$ rustup install stable-msvc
but
$ rustup toolchain install stable-msvc
info: syncing channel updates for 'stable-i686-pc-windows-msvc'(The same happens for nightly-msvc)
Edit: This later section in the README justifies installing the 32-bit toolchain by default:
By default rustup on Windows configures Rust to target the 32-bit MSVC
ABI, that is thei686-pc-windows-msvctarget triple. More
specifically, the toolchains that rustup chooses to install, unless
told otherwise through the [toolchain specification], will be compiled
to run on ai686-pc-windows-msvchost, and will target that platform
by default. When you writerustup update nightly, rustup interprets
it asrustup update nightly-i686-pc-windows-msvc. You can change this
behavior withrustup set default-hostor during installation.
so the first section needs to be fixed.
However even this second quote implies that msvc would be installed over gnu
When you write
rustup update nightly, rustup interprets
it asrustup update nightly-i686-pc-windows-msvc.
which isn't what actually happens:
$ rustup toolchain install stable
info: syncing channel updates for 'stable-i686-pc-windows-gnu'
$ rustup toolchain install nightly
info: syncing channel updates for 'nightly-i686-pc-windows-gnu'(I have VS 2013 installed.)