termux_step_start_build: define TERMUX_STANDALONE_TOOLCHAIN before sourcing the package's build script, so the host build can use it if wanted
This commit is contained in:
parent
39a075aafc
commit
fb6c106c22
@ -1,4 +1,9 @@
|
|||||||
termux_step_start_build() {
|
termux_step_start_build() {
|
||||||
|
TERMUX_STANDALONE_TOOLCHAIN="$TERMUX_COMMON_CACHEDIR/android-r${TERMUX_NDK_VERSION}-api-${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+="-v3"
|
||||||
|
|
||||||
# shellcheck source=/dev/null
|
# shellcheck source=/dev/null
|
||||||
source "$TERMUX_PKG_BUILDER_SCRIPT"
|
source "$TERMUX_PKG_BUILDER_SCRIPT"
|
||||||
|
|
||||||
@ -8,11 +13,6 @@ termux_step_start_build() {
|
|||||||
TERMUX_PKG_PLATFORM_INDEPENDENT=true
|
TERMUX_PKG_PLATFORM_INDEPENDENT=true
|
||||||
fi
|
fi
|
||||||
|
|
||||||
TERMUX_STANDALONE_TOOLCHAIN="$TERMUX_COMMON_CACHEDIR/android-r${TERMUX_NDK_VERSION}-api-${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+="-v3"
|
|
||||||
|
|
||||||
if [ -n "${TERMUX_PKG_BLACKLISTED_ARCHES:=""}" ] && [ "$TERMUX_PKG_BLACKLISTED_ARCHES" != "${TERMUX_PKG_BLACKLISTED_ARCHES/$TERMUX_ARCH/}" ]; then
|
if [ -n "${TERMUX_PKG_BLACKLISTED_ARCHES:=""}" ] && [ "$TERMUX_PKG_BLACKLISTED_ARCHES" != "${TERMUX_PKG_BLACKLISTED_ARCHES/$TERMUX_ARCH/}" ]; then
|
||||||
echo "Skipping building $TERMUX_PKG_NAME for arch $TERMUX_ARCH"
|
echo "Skipping building $TERMUX_PKG_NAME for arch $TERMUX_ARCH"
|
||||||
exit 0
|
exit 0
|
||||||
|
Loading…
Reference in New Issue
Block a user