Skip to content

Commit 561dede

Browse files
committed
MSVC-Builds.md: Mention about toolchains and targets
... when one is doing a cross-build and/or when one specifies a particular toolchain version. This will make things clearer to people what the build will look for in different build scenarios.
1 parent fa87ef6 commit 561dede

File tree

1 file changed

+12
-5
lines changed

1 file changed

+12
-5
lines changed

win32/MSVC-Builds.md

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,18 @@ dependencies:
2424

2525
You will also need the following tools:
2626
* Visual Studio 2013 or later, with C/C++ compilation support (MSVC).
27-
* The Rust Compiler and tools with the msvc toolchain(s) installed, that
28-
matches the architecture that is being built. It is recommended to use
29-
the `rustup` tool from https://www.rust-lang.org/ to install and
30-
configure Rust, which will install Rust in `%HOMEPATH%\.cargo` by
31-
default.
27+
* The Rust Compiler and tools with the msvc toolchain(s) and/or target(s)
28+
installed, that matches the architecture that is being built. It is
29+
recommended to use the `rustup` tool from https://www.rust-lang.org/
30+
to install and configure Rust, which will install Rust in
31+
`%HOMEPATH%\.cargo` by default, which will be the default location that
32+
is looked up for the `rustup` and `cargo` tools. If no `TOOLCHAIN_VERSION`
33+
is specified (or if you are carrying out a cross-build), you need to
34+
ensure that you added the target architecture to your default toolchain
35+
via `rustup` if the architecture differs from the toolchain's architure.
36+
If `TOOLCHAIN_VERSION` is specified and a cross-build is not carried out,
37+
you will need to ensure the corresponding toolchain for the target
38+
architecture is installed.
3239
* `pkg-config` tool (or something that is compatible, set via
3340
`PKG_CONFIG` in the NMake command line if cross-compiling, or if in a
3441
non-standard location). `PKG_CONFIG_PATH` in the NMake command line is

0 commit comments

Comments
 (0)