mirror of
https://gitlab.com/fabinfra/fabaccess/bffh.git
synced 2024-12-21 11:23: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
|
||||
|
||||
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`:
|
||||
|
||||
```toml
|
||||
@ -105,6 +105,10 @@ linker = "aarch64-linux-gnu-gcc"
|
||||
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`
|
||||
with the `--target` flag:
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user