File tree Expand file tree Collapse file tree 1 file changed +3
-8
lines changed Expand file tree Collapse file tree 1 file changed +3
-8
lines changed Original file line number Diff line number Diff line change @@ -26,16 +26,11 @@ Note that `rustup target add` only installs the Rust standard library for a
26
26
given target. There are typically other tools necessary to cross-compile,
27
27
particularly a linker. For example, to cross compile to Android the [ Android
28
28
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.
30
31
31
32
[ Android NDK ] : https://developer.android.com/tools/sdk/ndk/index.html
32
-
33
- To tell cargo which linker it should use for a specific target, you can add the
34
- following lines to ` ~/.cargo/config ` :
35
- ``` console
36
- [target.armv7-unknown-linux-gnueabihf]
37
- linker = "arm-linux-gnueabihf-gcc-5.3.1"
38
- ```
33
+ [ target section ] : https://doc.rust-lang.org/cargo/reference/config.html#target
39
34
40
35
To install a target for a toolchain that isn't the default toolchain use the
41
36
` --toolchain ` argument of ` rustup target add ` , like so:
You can’t perform that action at this time.
0 commit comments