Skip to content

Commit

Permalink
Remove use of build-std, build-std-features
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 committed May 26, 2024
1 parent 3c987b4 commit 83b2ceb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 0 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,6 @@ $(BUILD)/efi.img: $(BUILD)/boot.efi res/*
$(BUILD)/boot.efi: Cargo.lock Cargo.toml src/* src/*/*
mkdir -p $(BUILD)
cargo rustc \
-Z build-std=core,alloc \
-Z build-std-features=compiler-builtins-mem \
--target $(TARGET) \
--release \
-- \
Expand Down
4 changes: 3 additions & 1 deletion rust-toolchain.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
[toolchain]
channel = "nightly-2024-05-11"
components = ["rust-src", "clippy"]
components = ["clippy"]
targets = ["x86_64-unknown-uefi"]
profile = "minimal"

0 comments on commit 83b2ceb

Please sign in to comment.