Skip to content

Commit e936b85

Browse files
skademark-i-m
authored andcommitted
Add prerequisite page
1 parent 21ee99e commit e936b85

File tree

2 files changed

+28
-1
lines changed

2 files changed

+28
-1
lines changed

src/SUMMARY.md

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
- [Getting Started](./getting-started.md)
1010
- [About the compiler team](./compiler-team.md)
1111
- [How to Build and Run the Compiler](./building/how-to-build-and-run.md)
12+
- [Prerequisites](./building/prerequisites.md)
1213
- [Suggested Workflows](./building/suggested.md)
1314
- [Bootstrapping](./building/bootstrapping.md)
1415
- [Distribution artifacts](./building/build-install-distribution-artifacts.md)

src/building/prerequisites.md

+27-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,29 @@
11
# Prerequisites
22

3-
** Coming Soon: https://github.com/rust-lang/rustc-dev-guide/pull/723 **
3+
Before building the compiler, you need the following things installed:
4+
5+
* Python
6+
* A C/C++ compiler toolchain
7+
* cmake
8+
* rustc
9+
10+
## `rustc` and toolchain installation
11+
12+
Follow the installation given in the [Rust book](https://doc.rust-lang.org/book/ch01-01-installation.html) to install a working `rustc` and the necessary C/++ toolchain on your platform.
13+
14+
## Platform specific instructions
15+
16+
### Windows
17+
18+
* Install [winget](https://github.com/microsoft/winget-cli)
19+
20+
Run the following in a terminal:
21+
22+
```
23+
winget install python
24+
winget install cmake
25+
```
26+
27+
If any of those is installed already, winget will detect it.
28+
29+
Edit your systems `PATH` variable and add: `C:\Program Files\CMake\bin`.

0 commit comments

Comments
 (0)