From fff5e85cb43bb8fdf0223888f9dbb6bcc1158352 Mon Sep 17 00:00:00 2001 From: Kasper Date: Thu, 26 Nov 2020 00:09:20 +0100 Subject: [PATCH] Update README.md --- README.md | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 5c70ca0..1fe05f5 100644 --- a/README.md +++ b/README.md @@ -184,14 +184,13 @@ Nice list of units: https://support.google.com/websearch/answer/3284611 ``` cargo install cross ``` -3. Build. `` is the platform you're building for: +3. Build for x86_64 macOS, Linux and Windows: ```sh - cross build --release --target + 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 ``` - - macOS target: `x86_64-apple-darwin` (Only works on macOS) - - Linux target: `x86_64-unknown-linux-musl` - - Windows target: `x86_64-pc-windows-gnu` - - In case you want to compile for more targets, check out [the targets `cross` supports](https://github.com/rust-embedded/cross#supported-targets) + - Note that 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 The compiled binaries will now be available inside `target//release/`. The filename will be either `cpc` or `cpc.exe`. ### Releasing a new version