Allow override of cargoflags

This commit is contained in:
Jeremy Soller
2018-11-13 20:56:59 -07:00
parent 2b3ae4d8b8
commit 8a972542be
+3 -2
View File
@@ -1,13 +1,14 @@
TARGET?=
CARGO?=cargo
CARGOFLAGS?=
BUILD=target
ifneq ($(TARGET),)
BUILD="target/$(TARGET)"
CARGOFLAGS+="--target=$(TARGET)"
endif
CARGO?=cargo
ifeq ($(TARGET),aarch64-unknown-linux-gnu)
CC?=aarch64-linux-gnu-gcc
endif