Use common cachedir for standalone toolchain

We might just as well use TERMUX_COMMON_CACHEDIR instead of using
_lib for the standalone toolchain.
This commit is contained in:
Fredrik Fornwall 2018-05-27 15:06:06 +02:00
parent 160d3aeb06
commit 81328b7093
1 changed files with 1 additions and 1 deletions

View File

@ -366,7 +366,7 @@ termux_step_start_build() {
# shellcheck source=/dev/null
source "$TERMUX_PKG_BUILDER_SCRIPT"
TERMUX_STANDALONE_TOOLCHAIN="$TERMUX_TOPDIR/_lib/${TERMUX_NDK_VERSION}-${TERMUX_ARCH}-${TERMUX_PKG_API_LEVEL}"
TERMUX_STANDALONE_TOOLCHAIN="$TERMUX_COMMON_CACHEDIR/${TERMUX_NDK_VERSION}-${TERMUX_ARCH}-${TERMUX_PKG_API_LEVEL}"
# Bump the below version if a change is made in toolchain setup to ensure
# that everyone gets an updated toolchain:
TERMUX_STANDALONE_TOOLCHAIN+="-v1"