Skip to content

Commit d7b4c7e

Browse files
badboyJohnTitor
andauthored
Start with the basics (#675)
* The very first step should be to clone the repository * Make the command copy-able By having the plain command users can select and copy the text and paste it, without needing to fiddle around to remove extra characters. Now that the previous command switched directories it is not necessary to be called out here again either. * Update src/building/how-to-build-and-run.md Co-authored-by: Yuki Okushi <[email protected]>
1 parent f9b6733 commit d7b4c7e

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

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

+10-2
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,23 @@ be hacking on `rustc`, you'll want to tweak the configuration of the compiler.
66
The default configuration is oriented towards running the compiler as a user,
77
not a developer.
88

9+
## Get the source code
10+
11+
The very first step to work on `rustc` is to clone the repository:
12+
13+
```bash
14+
git clone https://github.com/rust-lang/rust.git
15+
cd rust
16+
```
17+
918
## Create a config.toml
1019

1120
To start, copy [`config.toml.example`] to `config.toml`:
1221

1322
[`config.toml.example`]: https://github.com/rust-lang/rust/blob/master/config.toml.example
1423

1524
```bash
16-
> cd $RUST_CHECKOUT
17-
> cp config.toml.example config.toml
25+
cp config.toml.example config.toml
1826
```
1927

2028
Then you will want to open up the file and change the following

0 commit comments

Comments
 (0)