Use CARGO_HOME on the host

This lets cargo's cache persist across builds, so there are fewer (often
zero) network pulls during the build process.
This commit is contained in:
Andrew Eikum 2022-03-03 11:21:32 -06:00 committed by Arkadiusz Hiler
parent ab06ba22a0
commit 14ffc4d0f7
2 changed files with 4 additions and 1 deletions

View file

@ -113,7 +113,6 @@ $(2)_LIBFLAGS$(3) = $$(foreach d,$$($(2)_DEPS$(3)),-L$$($$(d)_LIBDIR$(3))) \
# native version doesn't exist.
$(2)_ENV$(3) = \
CARGO_HOME=$$(OBJ)/.cargo \
CARGO_TARGET_$$(call toupper,$$(CARGO_TARGET_$(3)))_LINKER="$$(TARGET_$(4)$(3))-gcc" \
CCACHE_BASEDIR="$$(CCACHE_BASEDIR)" \
STRIP="$$(STRIP)" \