about summary refs log tree commit diff
path: root/src/doc/rustc-dev-guide
diff options
context:
space:
mode:
authorFlorian Gilcher <florian.gilcher@asquera.de>2020-05-27 23:20:18 +0200
committerWho? Me?! <mark-i-m@users.noreply.github.com>2020-06-23 12:42:06 -0500
commit5fefd83bd133e9893a9aa6e243766aedd391115e (patch)
tree6fb2917a0b24ba1245470df557149da1cc11b51c /src/doc/rustc-dev-guide
parent8c22955d87ccf08af4f0b873eebec2d9f6d2ec25 (diff)
downloadrust-5fefd83bd133e9893a9aa6e243766aedd391115e.tar.gz
rust-5fefd83bd133e9893a9aa6e243766aedd391115e.zip
Add prerequisite page
Diffstat (limited to 'src/doc/rustc-dev-guide')
-rw-r--r--src/doc/rustc-dev-guide/src/SUMMARY.md1
-rw-r--r--src/doc/rustc-dev-guide/src/building/prerequisites.md28
2 files changed, 28 insertions, 1 deletions
diff --git a/src/doc/rustc-dev-guide/src/SUMMARY.md b/src/doc/rustc-dev-guide/src/SUMMARY.md
index c900070a44c..b7439d0eaf4 100644
--- a/src/doc/rustc-dev-guide/src/SUMMARY.md
+++ b/src/doc/rustc-dev-guide/src/SUMMARY.md
@@ -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)
diff --git a/src/doc/rustc-dev-guide/src/building/prerequisites.md b/src/doc/rustc-dev-guide/src/building/prerequisites.md
index aa13c7524b5..9db18778d39 100644
--- a/src/doc/rustc-dev-guide/src/building/prerequisites.md
+++ b/src/doc/rustc-dev-guide/src/building/prerequisites.md
@@ -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`.