Skip to content

Commit 50a8cca

Browse files
committed
README.md: Reword prebuilt toolchain use, note rust.prebuiltToolchain
1 parent 32a43e1 commit 50a8cca

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

README.md

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -268,9 +268,13 @@ cargo {
268268

269269
## Specifying NDK toolchains
270270

271-
When `prebuiltToolchains = false` or for NDK versions before 19, the plugin looks for (and will
272-
generate) per-target architecture standalone NDK toolchains as generated by
273-
`make_standalone_toolchain.py`.
271+
The plugin can either use prebuilt NDK toolchain binaries, or search for (and if missing, build)
272+
NDK toolchains as generated by `make_standalone_toolchain.py`.
273+
274+
A prebuilt NDK toolchain will be used if:
275+
1. `rust.prebuiltToolchain=true` in the per-(multi-)project `${rootDir}/local.properties`
276+
1. `prebuiltToolchain=true` in the `cargo { ... }` block (if not overridden by `local.properties`)
277+
1. The discovered NDK is version 19 or higher (if not overridden per above)
274278

275279
The toolchains are rooted in a single Android NDK toolchain directory. In order of preference, the
276280
toolchain root directory is determined by:

0 commit comments

Comments
 (0)