Skip to content

Commit 53a7fd3

Browse files
JohnTitorJoshua Nelson
andauthored
Improve prerequisites section for Windows (#934)
Co-authored-by: Joshua Nelson <[email protected]>
1 parent b1af2f0 commit 53a7fd3

File tree

1 file changed

+16
-18
lines changed

1 file changed

+16
-18
lines changed

src/building/prerequisites.md

Lines changed: 16 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,23 @@ See [this section for more info][sysllvm].
2323

2424
### Windows
2525

26+
* Install [winget](https://github.com/microsoft/winget-cli)
27+
28+
`winget` is a Windows package manager. It will make package installation easy
29+
on Windows.
30+
31+
Run the following in a terminal:
32+
33+
```powershell
34+
winget install python
35+
winget install cmake
36+
```
37+
38+
If any of those is installed already, winget will detect it.
39+
Then edit your systems `PATH` variable and add: `C:\Program Files\CMake\bin`.
40+
2641
For more information about building on Windows,
27-
see [the Rust README](https://github.com/rust-lang/rust#msvc).
42+
see [the `rust-lang/rust` README](https://github.com/rust-lang/rust#building-on-windows).
2843

2944
## Hardware
3045

@@ -45,20 +60,3 @@ Follow the installation given in the [Rust book][install] to install a working
4560
`rustc` and the necessary C/++ toolchain on your platform.
4661

4762
[install]: https://doc.rust-lang.org/book/ch01-01-installation.html
48-
49-
## Platform specific instructions
50-
51-
### Windows
52-
53-
* Install [winget](https://github.com/microsoft/winget-cli)
54-
55-
Run the following in a terminal:
56-
57-
```
58-
winget install python
59-
winget install cmake
60-
```
61-
62-
If any of those is installed already, winget will detect it.
63-
64-
Edit your systems `PATH` variable and add: `C:\Program Files\CMake\bin`.

0 commit comments

Comments
 (0)