Fix override of CARGOFLAGS when using target

This commit is contained in:
Jeremy Soller
2018-11-13 21:00:05 -07:00
parent 8a972542be
commit f1c970beef
+1 -2
View File
@@ -1,12 +1,11 @@
TARGET?=
CARGO?=cargo
CARGOFLAGS?=
BUILD=target
ifneq ($(TARGET),)
BUILD="target/$(TARGET)"
CARGOFLAGS+="--target=$(TARGET)"
CARGOFLAGS?="--target=$(TARGET)"
endif
ifeq ($(TARGET),aarch64-unknown-linux-gnu)