about summary refs log tree commit diff
diff options
context:
space:
mode:
authorPaulo Matos <pmatos@linki.tools>2016-09-23 17:38:20 +0200
committerSteve Klabnik <steve@steveklabnik.com>2016-09-27 16:45:36 -0400
commitcb3b03c2a9372bae2974652ab72809f3e6258f22 (patch)
treec4e4055a989a5ec1679730353f7378379825aa04
parentea65ab6c7e96bf38c291ed7192137e6b96772687 (diff)
downloadrust-cb3b03c2a9372bae2974652ab72809f3e6258f22.tar.gz
rust-cb3b03c2a9372bae2974652ab72809f3e6258f22.zip
Improve documention troubleshooting missing linker. Fix #32208.
-rw-r--r--src/doc/book/getting-started.md22
1 files changed, 16 insertions, 6 deletions
diff --git a/src/doc/book/getting-started.md b/src/doc/book/getting-started.md
index bff448aadd5..22db70e605b 100644
--- a/src/doc/book/getting-started.md
+++ b/src/doc/book/getting-started.md
@@ -166,12 +166,22 @@ you can find the Rust executables in a directory like
 `"C:\Program Files\Rust stable GNU 1.x\bin"`.
 
 Rust does not do its own linking, and so you’ll need to have a linker
-installed. Doing so will depend on your specific system, consult its
-documentation for more details.
-
-If not, there are a number of places where we can get help. The easiest is
-[the #rust-beginners IRC channel on irc.mozilla.org][irc-beginners] and for
-general discussion [the #rust IRC channel on irc.mozilla.org][irc], which we
+installed. Doing so will depend on your specific system. For
+Linux-based systems, Rust will attempt to call `cc` for linking. On
+`windows-msvc` (Rust built on Windows with Microsoft Visual Studio),
+this depends on having [Microsoft Visual C++ Build Tools][msvbt]
+installed. These do not need to be in `%PATH%` as `rustc` will find
+them automatically. In general, if you have your linker in a
+non-traditional location you can call `rustc 
+linker=/path/to/cc`, where `/path/to/cc` should point to your linker path.
+
+[msvbt]: http://landinghub.visualstudio.com/visual-cpp-build-tools
+
+If you are still stuck, there are a number of places where we can get
+help. The easiest is
+[the #rust-beginners IRC channel on irc.mozilla.org][irc-beginners] 
+and for general discussion
+[the #rust IRC channel on irc.mozilla.org][irc], which we 
 can access through [Mibbit][mibbit]. Then we'll be chatting with other
 Rustaceans (a silly nickname we call ourselves) who can help us out. Other great
 resources include [the user’s forum][users] and [Stack Overflow][stackoverflow].