Skip to content

Commit eec10d3

Browse files
committed
Move "create a config.toml" after the section explaning x.py
1 parent d306f68 commit eec10d3

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

src/building/how-to-build-and-run.md

+12-12
Original file line numberDiff line numberDiff line change
@@ -21,18 +21,6 @@ git clone https://github.com/rust-lang/rust.git
2121
cd rust
2222
```
2323

24-
## Create a `config.toml`
25-
26-
To start, run `./x.py setup`. This will do some initialization and create a
27-
`config.toml` for you with reasonable defaults.
28-
29-
Alternatively, you can write `config.toml` by hand. See `config.toml.example`
30-
for all the available settings and explanations of them. See `src/bootstrap/defaults` for common settings to change.
31-
32-
If you have already built `rustc` and you change settings related to LLVM, then you may have to
33-
execute `rm -rf build` for subsequent configuration changes to take effect. Note that `./x.py
34-
clean` will not cause a rebuild of LLVM.
35-
3624
## What is `x.py`?
3725

3826
`x.py` is the build tool for the `rust` repository. It can build docs, run tests, and compile the
@@ -51,6 +39,18 @@ of a checkout. It also looks up the appropriate version of `python` to use.
5139

5240
You can install it with `cargo install --path src/tools/x`.
5341

42+
## Create a `config.toml`
43+
44+
To start, run `./x.py setup`. This will do some initialization and create a
45+
`config.toml` for you with reasonable defaults.
46+
47+
Alternatively, you can write `config.toml` by hand. See `config.toml.example`
48+
for all the available settings and explanations of them. See `src/bootstrap/defaults` for common settings to change.
49+
50+
If you have already built `rustc` and you change settings related to LLVM, then you may have to
51+
execute `rm -rf build` for subsequent configuration changes to take effect. Note that `./x.py
52+
clean` will not cause a rebuild of LLVM.
53+
5454
## Building the Compiler
5555

5656
Note that building will require a relatively large amount of storage space.

0 commit comments

Comments
 (0)