summaryrefslogtreecommitdiff
path: root/lang/rust
diff options
context:
space:
mode:
authorJeffery To <jeffery.to@gmail.com>2023-09-23 00:26:20 +0800
committerJeffery To <jeffery.to@gmail.com>2023-10-11 15:50:23 +0800
commit853c9c9e8625c54a2c3214b2ef770ffc76bd3495 (patch)
tree90e9bd5b9d1ed2c9f36f961a256d7d8cd5d7da34 /lang/rust
parent5c5123f0f63cfda1d4f17a5d315356883fd82923 (diff)
rust: Move CARGO_HOME to $(DL_DIR)/cargo
As CARGO_HOME mainly functions as a download and source cache[1], moving it into $(DL_DIR) allows it to persist and be reused between different buildroots/sdks (when DL_DIR is set to a custom/external location). [1]: https://doc.rust-lang.org/cargo/guide/cargo-home.html Signed-off-by: Jeffery To <jeffery.to@gmail.com>
Diffstat (limited to 'lang/rust')
-rw-r--r--lang/rust/rust-values.mk2
1 files changed, 1 insertions, 1 deletions
diff --git a/lang/rust/rust-values.mk b/lang/rust/rust-values.mk
index 02a68d48f..a0fab6ae1 100644
--- a/lang/rust/rust-values.mk
+++ b/lang/rust/rust-values.mk
@@ -5,7 +5,7 @@
# Rust Environmental Vars
RUSTC_HOST_SUFFIX:=$(word 4, $(subst -, ,$(GNU_HOST_NAME)))
RUSTC_HOST_ARCH:=$(HOST_ARCH)-unknown-linux-$(RUSTC_HOST_SUFFIX)
-CARGO_HOME:=$(STAGING_DIR)/host/cargo
+CARGO_HOME:=$(DL_DIR)/cargo
CARGO_VARS?=
ifeq ($(CONFIG_USE_MUSL),y)