Skip to content

Commit a58ea8b

Browse files
committed
Move info about target adding above the installing sections
1 parent 9165783 commit a58ea8b

1 file changed

Lines changed: 12 additions & 12 deletions

File tree

README.md

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,18 @@ This cargo extension handles all the environment configuration needed for succes
3333

3434
## Installing
3535

36+
You'll first need to install all the toolchains you intend to use. Simplest way is with the following:
37+
38+
```
39+
rustup target add \
40+
aarch64-linux-android \
41+
armv7-linux-androideabi \
42+
x86_64-linux-android \
43+
i686-linux-android
44+
```
45+
46+
Modify as necessary for your use case.
47+
3648
### With `cargo binstall`
3749

3850
To eliminate time wasted building `cargo-ndk` in your CI pipelines, you can use [`cargo-binstall`](https://github.com/cargo-bins/cargo-binstall):
@@ -47,18 +59,6 @@ cargo binstall cargo-ndk
4759
cargo install cargo-ndk
4860
```
4961

50-
You'll also need to install all the toolchains you intend to use. Simplest way is with the following:
51-
52-
```
53-
rustup target add \
54-
aarch64-linux-android \
55-
armv7-linux-androideabi \
56-
x86_64-linux-android \
57-
i686-linux-android
58-
```
59-
60-
Modify as necessary for your use case.
61-
6262
## Examples
6363

6464
### Building a library for 32-bit and 64-bit ARM systems

0 commit comments

Comments
 (0)