Skip to content

Commit ab5809b

Browse files
authored
Update prerequisites, with an eye towards windows (#863)
* Update prerequisites, with an eye towards windows * Address review comments - Say version of MSVC needed - Link to more details windows section - Fix grammar
1 parent b29062c commit ab5809b

File tree

1 file changed

+14
-6
lines changed

1 file changed

+14
-6
lines changed

src/building/prerequisites.md

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,20 +4,28 @@
44

55
Before building the compiler, you need the following things installed:
66

7-
* `g++` 5.1 or later or `clang++` 3.5 or later
8-
* `python` 3 or 2.7
9-
* GNU `make` 3.81 or later
10-
* `cmake` 3.4.3 or later
7+
* `python` 3 or 2.7 (under the name `python`; `python2` or `python3` will not work)
118
* `curl`
129
* `git`
1310
* `ssl` which comes in `libssl-dev` or `openssl-devel`
1411
* `pkg-config` if you are compiling on Linux and targeting Linux
1512

16-
Additionally, if you want to build `rustc` with your system's LLVM, you will
17-
need `llvm-config`. See [this section for more info][sysllvm].
13+
If building LLVM from source (the default), you'll need additional tools:
14+
15+
* `g++` 5.1 or later, `clang++` 3.5 or later, or MSVC 2017 or later.
16+
* `ninja`, or GNU `make` 3.81 or later (ninja is recommended, especially on Windows)
17+
* `cmake` 3.4.3 or later
18+
19+
Otherwise, you'll need LLVM installed and `llvm-config` in your path.
20+
See [this section for more info][sysllvm].
1821

1922
[sysllvm]: ./suggested.md#building-with-system-llvm
2023

24+
### Windows
25+
26+
For more information about building on Windows,
27+
see [the Rust README](https://github.com/rust-lang/rust#msvc).
28+
2129
## Hardware
2230

2331
These are not so much requirements as _recommendations_:

0 commit comments

Comments
 (0)