diff options
author | Leo <thinkabit.ukim@gmail.com> | 2020-02-12 15:56:24 -0300 |
---|---|---|
committer | Sören Tempel <soeren+git@soeren-tempel.net> | 2020-02-16 23:30:17 +0100 |
commit | af0c88e6abbb1e49224759f5c51b3068e6eab28b (patch) | |
tree | 34e2e3edeae02fe31bd818e7ea191d1e222ce0e3 /abuild.in | |
parent | e125a764896d884c69cc409e614b65cb336c15e8 (diff) | |
download | abuild-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.
Diffstat (limited to 'abuild.in')
-rw-r--r-- | abuild.in | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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 |