Skip to content

Commit

Permalink
Remove use of build-std
Browse files Browse the repository at this point in the history
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 <tcrawford@system76.com>
  • Loading branch information
crawfxrd authored and jackpot51 committed May 26, 2024
1 parent 9d9e8e7 commit 7d97245
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
1 change: 0 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
-- \
Expand Down
3 changes: 2 additions & 1 deletion rust-toolchain.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
[toolchain]
channel = "nightly-2024-05-11"
components = ["rust-src"]
targets = ["x86_64-unknown-uefi"]
profile = "minimal"

0 comments on commit 7d97245

Please sign in to comment.