Skip to content

Commit

Permalink
Add prerequisite page
Browse files Browse the repository at this point in the history
  • Loading branch information
skade authored and mark-i-m committed Jun 23, 2020
1 parent 21ee99e commit e936b85
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/SUMMARY.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
- [Getting Started](./getting-started.md)
- [About the compiler team](./compiler-team.md)
- [How to Build and Run the Compiler](./building/how-to-build-and-run.md)
- [Prerequisites](./building/prerequisites.md)
- [Suggested Workflows](./building/suggested.md)
- [Bootstrapping](./building/bootstrapping.md)
- [Distribution artifacts](./building/build-install-distribution-artifacts.md)
Expand Down
28 changes: 27 additions & 1 deletion src/building/prerequisites.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,29 @@
# Prerequisites

** Coming Soon: https://github.com/rust-lang/rustc-dev-guide/pull/723 **
Before building the compiler, you need the following things installed:

* Python
* A C/C++ compiler toolchain
* cmake
* rustc

## `rustc` and toolchain installation

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.

## Platform specific instructions

### Windows

* Install [winget](https://github.com/microsoft/winget-cli)

Run the following in a terminal:

```
winget install python
winget install cmake
```

If any of those is installed already, winget will detect it.

Edit your systems `PATH` variable and add: `C:\Program Files\CMake\bin`.

0 comments on commit e936b85

Please sign in to comment.