From a5cf5ef9d50ebfcceff180f468adfa4a118a15f9 Mon Sep 17 00:00:00 2001 From: Henrik Grimler Date: Sat, 4 Dec 2021 16:05:37 +0100 Subject: [PATCH] termux_step_override_config_scripts: don't run on device --- scripts/build/termux_step_override_config_scripts.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/scripts/build/termux_step_override_config_scripts.sh b/scripts/build/termux_step_override_config_scripts.sh index f6af023d6..a4dd5f3b8 100644 --- a/scripts/build/termux_step_override_config_scripts.sh +++ b/scripts/build/termux_step_override_config_scripts.sh @@ -1,5 +1,9 @@ termux_step_override_config_scripts() { - if [ "$TERMUX_INSTALL_DEPS" == true ] && [ "$TERMUX_PKG_DEPENDS" != "${TERMUX_PKG_DEPENDS/libllvm/}" ]; then + if [ "$TERMUX_ON_DEVICE_BUILD" == true ] || [ "$TERMUX_INSTALL_DEPS" == false ]; then + return + fi + + if [ "$TERMUX_PKG_DEPENDS" != "${TERMUX_PKG_DEPENDS/libllvm/}" ]; then LLVM_DEFAULT_TARGET_TRIPLE=$TERMUX_HOST_PLATFORM if [ $TERMUX_ARCH = "arm" ]; then LLVM_TARGET_ARCH=ARM