소스 검색

Build xargo locally

Jeremy Soller 4 년 전
부모
커밋
604f1c11a2
1개의 변경된 파일6개의 추가작업 그리고 3개의 파일을 삭제
  1. 6 3
      Makefile

+ 6 - 3
Makefile

@@ -2,13 +2,16 @@ TARGET?=
 
 CARGO?=cargo
 CARGO_TEST?=$(CARGO)
-CARGOFLAGS=
-RUSTCFLAGS=
+CARGOFLAGS?=
+RUSTCFLAGS?=
+
+# When using xargo, build it in local location
+export XARGO_HOME=$(CURDIR)/target/xargo
 
 BUILD=target
 ifneq ($(TARGET),)
 	BUILD="target/$(TARGET)"
-	CARGOFLAGS="--target=$(TARGET)"
+	CARGOFLAGS+="--target=$(TARGET)"
 endif
 
 ifeq ($(TARGET),aarch64-unknown-linux-gnu)