common/rust.sh: set CARGO_HOME to /host/cargo

currently cargo chaches everything in /tmp/.cargo and is not shared
between masterdirs
This commit is contained in:
John 2019-12-11 22:36:06 +01:00 committed by Juan RP
parent 2c6a0d79db
commit 4a967a96da
1 changed files with 1 additions and 0 deletions

View File

@ -2,6 +2,7 @@
# [build]
# jobs = $XBPS_MAKEJOBS
export CARGO_BUILD_JOBS="$XBPS_MAKEJOBS"
export CARGO_HOME="/host/cargo"
if [ "$CROSS_BUILD" ]; then
# Define equivalent of TOML config in environment