Skip to content

Commit 7bd8f6c

Browse files
committed
Switch from xargo to build-std
1 parent 8a56707 commit 7bd8f6c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Makefile

+3-3
Original file line numberDiff line numberDiff line change
@@ -6,19 +6,19 @@ all: src/rust.o
66

77
.PHONY:
88
fmt:
9-
xargo fmt
9+
cargo fmt
1010

1111
.PHONY:
1212
clippy:
13-
xargo clippy
13+
cargo clippy
1414

1515
clean:
1616
cargo clean
1717
rm -rf rust_objs
1818
make -C /lib/modules/$(shell uname -r)/build M=$(PWD) clean
1919

2020
src/rust.o: Cargo.toml src/ffi.c src/lib.rs src/macros.rs src/mutex.rs src/parrot.rs
21-
xargo rustc --release --target=x86_64-unknown-none-linuxkernel
21+
cargo rustc --release -Z build-std=core,alloc --target=x86_64-unknown-none-linuxkernel
2222
mkdir -p rust_objs
2323
cd rust_objs && ar x ../target/x86_64-unknown-none-linuxkernel/release/librust.a
2424
ld -r -o src/rust.o rust_objs/*.o

0 commit comments

Comments
 (0)