1. Make sure you have installed the dependencies:
- * `g++` 4.7 or later or `clang++` 3.x
+ * `g++` 4.7 or later or `clang++` 3.x or later
* `python` 2.7 (but not 3.x)
* GNU `make` 3.81 or later
* `cmake` 3.4.3 or later
3. Build and install:
```sh
- $ ./x.py build && sudo ./x.py dist --install
+ $ ./x.py build && sudo ./x.py install
```
> ***Note:*** Install locations can be adjusted by copying the config file
> adjusting the `prefix` option under `[install]`. Various other options are
> also supported, and are documented in the config file.
- When complete, `sudo ./x.py dist --install` will place several programs into
+ When complete, `sudo ./x.py install` will place several programs into
`/usr/local/bin`: `rustc`, the Rust compiler, and `rustdoc`, the
API-documentation tool. This install does not include [Cargo],
Rust's package manager, which you may also want to build.
4. Navigate to Rust's source code (or clone it), then build it:
```sh
- $ ./x.py build && ./x.py dist --install
+ $ ./x.py build && ./x.py install
```
#### MSVC
$ make && sudo make install
```
-When using the configure script, the generated config.mk` file may override the
+When using the configure script, the generated `config.mk` file may override the
`config.toml` file. To go back to the `config.toml` file, delete the generated
`config.mk` file.
$ ./x.py doc
```
-The generated documentation will appear in a top-level `doc` directory,
-created by the `make` rule.
+The generated documentation will appear under `doc` in the `build` directory for
+the ABI used. I.e., if the ABI was `x86_64-pc-windows-msvc`, the directory will be
+`build\x86_64-pc-windows-msvc\doc`.
## Notes
* [users.rust-lang.org] - General discussion and broader questions.
* [/r/rust] - News and general discussion.
-[Stack Overflow]: http://stackoverflow.com/questions/tagged/rust
-[/r/rust]: http://reddit.com/r/rust
+[Stack Overflow]: https://stackoverflow.com/questions/tagged/rust
+[/r/rust]: https://reddit.com/r/rust
[users.rust-lang.org]: https://users.rust-lang.org/
## Contributing