From e7828cd7f5ba65d25e3e96e362adc60adc81039f Mon Sep 17 00:00:00 2001 From: Nadja Reitzenstein Date: Tue, 31 May 2022 12:19:58 +0200 Subject: [PATCH] Add note to CONTRIBUTING about user cargo config --- CONTRIBUTING.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index ffa76e6..9836afd 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -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: