From e4043d746df5f29fe9ed35857a2d30d7d29447b5 Mon Sep 17 00:00:00 2001 From: Thom Chiovoloni Date: Tue, 24 Jan 2023 07:43:03 -0800 Subject: [PATCH] Fix confusing typo in `CROSS_COMPILE.md` about `rustup target add` vs `rustup toolchain add` --- CROSS_COMPILE.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/CROSS_COMPILE.md b/CROSS_COMPILE.md index 71e5124f0..5b369f813 100644 --- a/CROSS_COMPILE.md +++ b/CROSS_COMPILE.md @@ -102,8 +102,8 @@ On the steps on Debian-family are as follows: 1. Set up everything you'd need to perform non-cross builds. 2. Install a Rust toolchain for the target: - - *`target=aarch64`*: `rustup toolchain add aarch64-unknown-linux-gnu`. - - *`target=x86_64`*: `rustup toolchain add x86_64-unknown-linux-gnu`. + - *`target=aarch64`*: `rustup target add aarch64-unknown-linux-gnu`. + - *`target=x86_64`*: `rustup target add x86_64-unknown-linux-gnu`. 3. Install the `crossbuild-essential-` package for the architecture you are targetting - *`target=aarch64`*: `sudo apt install crossbuild-essential-arm64`. @@ -141,8 +141,8 @@ The first few steps are the same as under debian. 1. Set up everything you'd need to perform non-cross builds. 2. Install a Rust toolchain for the target: - - *`target=aarch64`*: `rustup toolchain add aarch64-unknown-linux-gnu`. - - *`target=x86_64`*: `rustup toolchain add x86_64-unknown-linux-gnu`. + - *`target=aarch64`*: `rustup target add aarch64-unknown-linux-gnu`. + - *`target=x86_64`*: `rustup target add x86_64-unknown-linux-gnu`. After this you need a cross compilation toolchain, which can be challenging.