Skip to content

Commit 84ca337

Browse files
crawfxrdjackpot51
authored andcommitted
Replace cargo-xbuild with build-std
1 parent 98b1f2b commit 84ca337

File tree

4 files changed

+11
-5
lines changed

4 files changed

+11
-5
lines changed

Cargo.lock

Lines changed: 7 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ redox_uefi = "0.1.0"
2222
redox_uefi_std = "0.1.0"
2323
spin = "0.5"
2424
#x86 = "0.7"
25+
rlibc = "1.0"
2526

2627
[features]
2728
default = []
@@ -32,7 +33,3 @@ orbclient = { path = "orbclient" }
3233
redox_uefi = { path = "uefi" }
3334
redox_uefi_alloc = { path = "uefi_alloc" }
3435
redox_uefi_std = { path = "uefi_std" }
35-
36-
[package.metadata.cargo-xbuild]
37-
memcpy = true
38-
sysroot_path = "build/xbuild"

Makefile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,8 @@ $(BUILD)/boot.o: $(BUILD)/boot.a
7171

7272
$(BUILD)/boot.a: Cargo.lock Cargo.toml res/* src/* src/*/*
7373
mkdir -p $(BUILD)
74-
cargo xrustc \
74+
cargo rustc \
75+
-Z build-std=core,alloc \
7576
--lib \
7677
--target $(TARGET) \
7778
--release \

src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ extern crate plain;
1919
extern crate spin;
2020
#[macro_use]
2121
extern crate uefi_std as std;
22+
extern crate rlibc;
2223

2324
#[allow(unused_imports)]
2425
#[prelude_import]

0 commit comments

Comments
 (0)