From b24530870e8ecee2c886e9c022394e93303aecd0 Mon Sep 17 00:00:00 2001 From: WangRunji Date: Mon, 7 May 2018 17:43:01 +0800 Subject: [PATCH] Update makefile --- Makefile | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index e08c0d0..be19a06 100644 --- a/Makefile +++ b/Makefile @@ -1,2 +1,9 @@ ucore: - @RUST_TARGET_PATH=$(shell pwd) xargo build --target ucore --features ucore \ No newline at end of file + rustup override set nightly-2018-04-01 + RUST_TARGET_PATH=$(shell pwd) xargo build --target ucore --features ucore + +install-rust: + which cargo || ( curl https://sh.rustup.rs -sSf | sh ) + which xargo || ( rustup component add rust-src && cargo install xargo ) + +.PHONY: ucore install-rust \ No newline at end of file