Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added submodule fetch instructions. #49338

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 15 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,20 @@ Read ["Installation"] from [The Book].
## Building from Source
[building-from-source]: #building-from-source

### Checking out
1. Make sure you have installed `git`.
2. Clone the [source] with `git`:

```sh
$ git clone https://github.com/rust-lang/rust.git
$ cd rust
```
3. Clone submodules with `git`:

```sh
$ git submodule init
$ git submodule update
```
### Building on *nix
1. Make sure you have installed the dependencies:

Expand All @@ -24,18 +38,10 @@ Read ["Installation"] from [The Book].
* GNU `make` 3.81 or later
* `cmake` 3.4.3 or later
* `curl`
* `git`

2. Clone the [source] with `git`:

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

[source]: https://github.com/rust-lang/rust

3. Build and install:
2. Build and install:

```sh
$ ./x.py build && sudo ./x.py install
Expand Down