mirror of
https://gitlab.com/fabinfra/fabaccess/bffh.git
synced 2024-12-22 03:33:48 +01:00
Add note to CONTRIBUTING about user cargo config
This commit is contained in:
parent
7861568ca1
commit
e7828cd7f5
@ -95,7 +95,7 @@ Debian Linux installation):
|
|||||||
### Configuring cargo
|
### Configuring cargo
|
||||||
|
|
||||||
You need to tell Cargo to use your C-toolchain. For this you need to have
|
You need to tell Cargo to use your C-toolchain. For this you need to have
|
||||||
a block in [your cargo config](https://doc.rust-lang.org/cargo/reference/config.html) setting at
|
a block in [your user cargo config](https://doc.rust-lang.org/cargo/reference/config.html) setting at
|
||||||
least the paths to the gcc as `linker` and ar as `ar`:
|
least the paths to the gcc as `linker` and ar as `ar`:
|
||||||
|
|
||||||
```toml
|
```toml
|
||||||
@ -105,6 +105,10 @@ linker = "aarch64-linux-gnu-gcc"
|
|||||||
ar = "aarch64-linux-gnu-ar"
|
ar = "aarch64-linux-gnu-ar"
|
||||||
```
|
```
|
||||||
|
|
||||||
|
This block should be added to your **user** cargo config (usually
|
||||||
|
`~/.cargo/config.toml`), since these values can differ between distros and
|
||||||
|
users.
|
||||||
|
|
||||||
To actually compile for the given triple you need to call `cargo build`
|
To actually compile for the given triple you need to call `cargo build`
|
||||||
with the `--target` flag:
|
with the `--target` flag:
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user