Skip to content

Instantly share code, notes, and snippets.

@yoshuawuyts
Last active July 11, 2020 14:15
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yoshuawuyts/9d0797afddd378e7cc06788c0a278c58 to your computer and use it in GitHub Desktop.
Save yoshuawuyts/9d0797afddd378e7cc06788c0a278c58 to your computer and use it in GitHub Desktop.

Pre-requisites

Should have a functioning Rust install already through rustup. This means the Visual Studio 2019 build tools also need to be installed.

Install deps

With winget installed do:

$ winget install python
$ winget install cmake

Add the following to your PATH env var:

C:\Program Files\CMake\bin

Reboot your computer.

Clone repo

$ git clone https://github.com/rust-lang/rust
$ cd rust

Build repo

$ py .\x.py check
@yoshuawuyts
Copy link
Author

How to set a path in Windows 10:

Screenshot 2020-05-27 17 26 29
Screenshot 2020-05-27 17 27 02
Screenshot 2020-05-27 17 27 16

@skade
Copy link

skade commented May 27, 2020

Also, the path you build in is not allowed to have spaces in it. This is pretty common on windows, as the persons name is used as a username.

Upstream LLVM bug, unlikely to move.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment