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 <[email protected]>
  • Loading branch information
crawfxrd committed May 26, 2024
1 parent dfe28df commit 9fa85f2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 0 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,6 @@ $(BUILD)/efi.img: $(BUILD)/boot.efi
$(BUILD)/boot.efi: Cargo.lock Cargo.toml res/* src/* src/*/*
mkdir -p $(BUILD)
cargo rustc \
-Z build-std=core,alloc \
-Z build-std-features=compiler-builtins-mem \
--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-2023-01-21"
components = ["rust-src"]
targets = ["x86_64-unknown-uefi"]
profile = "minimal"

0 comments on commit 9fa85f2

Please sign in to comment.