From 8c12437f054a775ab1718219ede6f82af2bf32dd Mon Sep 17 00:00:00 2001 From: chrysn Date: Sat, 22 Feb 2025 00:25:36 +0100 Subject: [PATCH] makefiles/rust: Allow overriding CARGO_TARGET_DIR This allows users (such as the riot-wrappers CI) to tune their cache directory to their application's caching needs. --- makefiles/cargo-settings.inc.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/makefiles/cargo-settings.inc.mk b/makefiles/cargo-settings.inc.mk index 2b29cb478e..07fb378ab5 100644 --- a/makefiles/cargo-settings.inc.mk +++ b/makefiles/cargo-settings.inc.mk @@ -19,7 +19,7 @@ CARGO_PROFILE ?= release # * Switching back and forth between two boards of the same CPU requires # riot-sys rebuilds. (On its own, this would be outweighed by the shared # compilation of other modules). -CARGO_TARGET_DIR = $(BINDIR)/target +CARGO_TARGET_DIR ?= $(BINDIR)/target # The single Rust library to be built. #