From 0d2d13c5c6f7be10a30dbf9004da327f1f459ffe Mon Sep 17 00:00:00 2001 From: Kasper Date: Mon, 15 Mar 2021 18:11:23 +0100 Subject: [PATCH] Update README.md --- README.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 487cdc5..ca588e9 100644 --- a/README.md +++ b/README.md @@ -180,6 +180,7 @@ match string { - Flow rate ### Cross-compiling +For some reason `cross` stopped working for me in Rust 1.50 ([rust-lang/rust#83154](https://github.com/rust-lang/rust/issues/83154)). 1. [Install Docker](https://docs.docker.com/get-docker/) 2. Install [cross](https://github.com/rust-embedded/cross): ``` @@ -187,9 +188,9 @@ match string { ``` 3. Build for x86_64 macOS, Linux and Windows: ```sh - cross build --release --target x86_64-apple-darwin && cross build --release --target x86_64-unknown-linux-musl && cross build --release --target x86_64-pc-windows-gnu + cargo build --release --target x86_64-apple-darwin && cross build --release --target x86_64-unknown-linux-musl && cross build --release --target x86_64-pc-windows-gnu ``` - - Note that building for `x86_64-apple-darwin` only works on macOS + - Building for `x86_64-apple-darwin` only works on macOS - For more targets, check out [the targets `cross` supports](https://github.com/rust-embedded/cross#supported-targets) - If you run `cross build` in parallel, you might get a `cargo not found` error