Skip to content

Commit e3e5cc2

Browse files
authored
Merge pull request #2834 from zoodirector/doc-cross-compilation-linker-config
Update cross-compilation.md
2 parents 52376ff + 64f4e2f commit e3e5cc2

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

doc/src/cross-compilation.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,11 @@ Note that `rustup target add` only installs the Rust standard library for a
2626
given target. There are typically other tools necessary to cross-compile,
2727
particularly a linker. For example, to cross compile to Android the [Android
2828
NDK] must be installed. In the future, `rustup` will provide assistance
29-
installing the NDK components as well.
29+
installing the NDK components as well. See the [target section] of the
30+
`cargo` configuration for how to setup a linker to use for a certain target.
3031

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

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

0 commit comments

Comments
 (0)