Skip to content

Commit

Permalink
Merge pull request #2834 from zoodirector/doc-cross-compilation-linke…
Browse files Browse the repository at this point in the history
…r-config

Update cross-compilation.md
  • Loading branch information
kinnison authored Sep 13, 2021
2 parents 52376ff + 64f4e2f commit e3e5cc2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion doc/src/cross-compilation.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,11 @@ Note that `rustup target add` only installs the Rust standard library for a
given target. There are typically other tools necessary to cross-compile,
particularly a linker. For example, to cross compile to Android the [Android
NDK] must be installed. In the future, `rustup` will provide assistance
installing the NDK components as well.
installing the NDK components as well. See the [target section] of the
`cargo` configuration for how to setup a linker to use for a certain target.

[Android NDK]: https://developer.android.com/tools/sdk/ndk/index.html
[target section]: https://doc.rust-lang.org/cargo/reference/config.html#target

To install a target for a toolchain that isn't the default toolchain use the
`--toolchain` argument of `rustup target add`, like so:
Expand Down

0 comments on commit e3e5cc2

Please sign in to comment.