Skip to content

Commit 2dd8bc8

Browse files
committed
Automatically install guest cross-compilation target if not installed
Signed-off-by: Ludvig Liljenberg <[email protected]>
1 parent 4fdab8f commit 2dd8bc8

File tree

2 files changed

+3
-7
lines changed

2 files changed

+3
-7
lines changed

README.md

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -173,13 +173,6 @@ After having an environment with a hypervisor setup, running the example has the
173173
1. On Linux or WSL, you'll most likely need build essential. For Ubuntu, run `sudo apt install build-essential`. For
174174
Azure Linux, run `sudo dnf install build-essential`.
175175
2. [Rust](https://www.rust-lang.org/tools/install). Install toolchain v1.85 or later.
176-
177-
Also, install the `x86_64-unknown-none` target, it is needed to build the test
178-
guest binaries.
179-
```sh
180-
rustup target add x86_64-unknown-none
181-
```
182-
183176
3. [just](https://github.com/casey/just). `cargo install just` On Windows you also need [pwsh](https://learn.microsoft.com/en-us/powershell/scripting/install/installing-powershell-on-windows?view=powershell-7.4).
184177
4. [clang and LLVM](https://clang.llvm.org/get_started.html).
185178
- On Ubuntu, run:

rust-toolchain.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,5 @@
11
[toolchain]
22
channel = "1.85"
3+
# Target used for guest binaries. This is an additive list of targets in addition to host platform.
4+
# Will install the target if not already installed when building guest binaries.
5+
targets = ["x86_64-unknown-none"]

0 commit comments

Comments
 (0)