Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix confusing typo in CROSS_COMPILE.md about rustup target add vs rustup toolchain add #1017

Merged
merged 1 commit into from
Jan 24, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions CROSS_COMPILE.md
Original file line number Diff line number Diff line change
Expand Up @@ -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-<arch>` package for the architecture you are targetting
- *`target=aarch64`*: `sudo apt install crossbuild-essential-arm64`.
Expand Down Expand Up @@ -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.

Expand Down