From 244361b7e54e674b6c07860d98c90c8e6b08fdb8 Mon Sep 17 00:00:00 2001 From: Tim Crawford Date: Sun, 26 May 2024 09:46:28 -0600 Subject: [PATCH] Remove use of build-std x86_64-unknown-uefi is a tier 2 supported target [1] that provides core and alloc (with redox_uefi providing the allocator). Nightly compiler options for building them are not needed. [1]: https://doc.rust-lang.org/1.78.0/rustc/platform-support/unknown-uefi.html Signed-off-by: Tim Crawford --- Makefile | 1 - rust-toolchain.toml | 3 ++- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index f0ca453..a0bf588 100644 --- a/Makefile +++ b/Makefile @@ -41,7 +41,6 @@ $(BUILD)/efi.img: $(BUILD)/boot.efi $(BUILD)/boot.efi: Cargo.lock Cargo.toml src/* mkdir -p $(BUILD) cargo rustc \ - -Z build-std=core,alloc \ --target $(TARGET) \ --release \ -- \ diff --git a/rust-toolchain.toml b/rust-toolchain.toml index 46893dd..289d2e1 100644 --- a/rust-toolchain.toml +++ b/rust-toolchain.toml @@ -1,3 +1,4 @@ [toolchain] channel = "nightly-2024-05-11" -components = ["rust-src"] +targets = ["x86_64-unknown-uefi"] +profile = "minimal"