summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLeo <thinkabit.ukim@gmail.com>2020-02-12 15:56:24 -0300
committerSören Tempel <soeren+git@soeren-tempel.net>2020-02-16 23:30:17 +0100
commitaf0c88e6abbb1e49224759f5c51b3068e6eab28b (patch)
tree34e2e3edeae02fe31bd818e7ea191d1e222ce0e3
parente125a764896d884c69cc409e614b65cb336c15e8 (diff)
downloadabuild-af0c88e6abbb1e49224759f5c51b3068e6eab28b.tar.bz2
abuild-af0c88e6abbb1e49224759f5c51b3068e6eab28b.tar.xz
set CARGO_HOME to $SRCDEST/cargo
CARGO_HOME tells cargo where to store installed dependencies, save it to a directory in $SRCDEST so we don't need to download all dependencies again when compiling a rust package.
-rw-r--r--abuild.in3
1 files changed, 2 insertions, 1 deletions
diff --git a/abuild.in b/abuild.in
index 97fe304..7654baa 100644
--- a/abuild.in
+++ b/abuild.in
@@ -2643,6 +2643,7 @@ aportsgit=${APORTSDIR:-${startdir}}
repo_template=$aportsgit/$repo/.rootbld-repositories
SRCDEST=${SRCDEST:-$startdir}
+CARGO_HOME=$SRCDEST/cargo
BUILD_ROOT=
@@ -2661,7 +2662,7 @@ if [ -z "$REPODEST" ]; then
fi
# for recursive action
-export REPODEST SRCDEST
+export REPODEST SRCDEST CARGO_HOME
# add dbg subpackage if its enabled globally
if [ -n "$DEFAULT_DBG" ] && ! subpackage_types_has "dbg" && ! options_has "!dbg" && [ "$arch" != "noarch" ]; then