Update README build instructions

This commit is contained in:
Alex Crichton 2016-12-25 17:02:04 -08:00
parent f414c9ff3f
commit ea182b8371
1 changed files with 3 additions and 13 deletions

View File

@ -35,6 +35,7 @@ Cargo requires the following tools and packages to build:
* `curl` (on Unix)
* `cmake`
* OpenSSL headers (only for Unix, this is the `libssl-dev` package on ubuntu)
* `cargo` and `rustc`
First, you'll want to check out this repository
@ -43,13 +44,13 @@ git clone --recursive https://github.com/rust-lang/cargo
cd cargo
```
If you already have `rustc` and `cargo` installed elsewhere, you can simply run
With `cargo` already installed, you can simply run:
```
cargo build --release
```
Otherwise, if you have `rustc` installed and not Cargo, you can simply run:
Otherwise, you can also use a more traditional approach:
```sh
./configure
@ -57,17 +58,6 @@ make
make install
```
If, however, you have neither `rustc` nor `cargo` previously installed you can
run:
```sh
python -B src/etc/install-deps.py
./configure --local-rust-root="$PWD"/rustc
make
make install
```
Note: if building for 32 bit systems run `BITS=32 python -B ..`
More options can be discovered through `./configure`, such as compiling cargo
for more than one target. For example, if you'd like to compile both 32 and 64
bit versions of cargo on unix you would use: