You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: README.md
+22-2
Original file line number
Diff line number
Diff line change
@@ -19,8 +19,28 @@ Read ["Installation"] from [The Book].
19
19
## Installing from Source
20
20
21
21
The Rust build system uses a Python script called `x.py` to build the compiler,
22
-
which manages the bootstrapping process. More information about it can be found
23
-
by running `./x.py --help` or reading the [rustc dev guide][rustcguidebuild].
22
+
which manages the bootstrapping process. It lives in the root of the project.
23
+
24
+
The `x.py` command can be run directly on most systems in the following format:
25
+
26
+
```sh
27
+
./x.py <subcommand> [flags]
28
+
```
29
+
30
+
This is how the documentation and examples assume you are running `x.py`.
31
+
32
+
Systems such as Ubuntu 20.04 LTS do not create the necessary `python` command by default when Python is installed that allows `x.py` to be run directly. In that case you can either create a symlink for `python` (Ubuntu provides the `python-is-python3` package for this), or run `x.py` using Python itself:
33
+
34
+
```sh
35
+
# Python 3
36
+
python3 x.py <subcommand> [flags]
37
+
38
+
# Python 2.7
39
+
python2.7 x.py <subcommand> [flags]
40
+
```
41
+
42
+
More information about `x.py` can be found
43
+
by running it with the `--help` flag or reading the [rustc dev guide][rustcguidebuild].
0 commit comments