From 9accc01de053ea4869ee70ac024231caad3b58b9 Mon Sep 17 00:00:00 2001 From: Kevin Cotugno Date: Tue, 30 Oct 2018 08:16:51 -0700 Subject: [PATCH] Simplify arm host triple fix --- packages/rust/build.sh | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/packages/rust/build.sh b/packages/rust/build.sh index f5b704e39..bb8d41206 100644 --- a/packages/rust/build.sh +++ b/packages/rust/build.sh @@ -8,11 +8,7 @@ TERMUX_PKG_DEPENDS="clang, openssl" termux_step_configure () { termux_setup_cmake - if [ "$TERMUX_ARCH" = "arm" ]; then - local triple="armv7-linux-androideabi" - else - local triple="$TERMUX_HOST_PLATFORM" - fi + local triple=`printf $TERMUX_HOST_PLATFORM | sed s/arm/armv7/` sed "s%\\@TERMUX_PREFIX\\@%$TERMUX_PREFIX%g" \ $TERMUX_PKG_BUILDER_DIR/config.toml \