clang: Fix arm build to target armv7 (fixes #282)
This commit is contained in:
parent
174a0b74f5
commit
8f36e264a8
@ -2,7 +2,7 @@ TERMUX_PKG_HOMEPAGE=http://clang.llvm.org/
|
|||||||
TERMUX_PKG_DESCRIPTION="C and C++ frontend for the LLVM compiler"
|
TERMUX_PKG_DESCRIPTION="C and C++ frontend for the LLVM compiler"
|
||||||
_PKG_MAJOR_VERSION=3.8
|
_PKG_MAJOR_VERSION=3.8
|
||||||
TERMUX_PKG_VERSION=${_PKG_MAJOR_VERSION}.0
|
TERMUX_PKG_VERSION=${_PKG_MAJOR_VERSION}.0
|
||||||
TERMUX_PKG_BUILD_REVISION=4
|
TERMUX_PKG_BUILD_REVISION=5
|
||||||
TERMUX_PKG_SRCURL=http://llvm.org/releases/${TERMUX_PKG_VERSION}/llvm-${TERMUX_PKG_VERSION}.src.tar.xz
|
TERMUX_PKG_SRCURL=http://llvm.org/releases/${TERMUX_PKG_VERSION}/llvm-${TERMUX_PKG_VERSION}.src.tar.xz
|
||||||
TERMUX_PKG_HOSTBUILD=true
|
TERMUX_PKG_HOSTBUILD=true
|
||||||
TERMUX_PKG_RM_AFTER_INSTALL="bin/macho-dump bin/bugpoint bin/llvm-tblgen lib/BugpointPasses.so lib/LLVMHello.so"
|
TERMUX_PKG_RM_AFTER_INSTALL="bin/macho-dump bin/bugpoint bin/llvm-tblgen lib/BugpointPasses.so lib/LLVMHello.so"
|
||||||
@ -38,6 +38,8 @@ termux_step_configure () {
|
|||||||
LLVM_TARGET_ARCH=$TERMUX_ARCH
|
LLVM_TARGET_ARCH=$TERMUX_ARCH
|
||||||
if [ $TERMUX_ARCH = "arm" ]; then
|
if [ $TERMUX_ARCH = "arm" ]; then
|
||||||
LLVM_TARGET_ARCH=ARM
|
LLVM_TARGET_ARCH=ARM
|
||||||
|
# See https://github.com/termux/termux-packages/issues/282
|
||||||
|
LLVM_DEFAULT_TARGET_TRIPLE="armv7a-linux-androideabi"
|
||||||
elif [ $TERMUX_ARCH = "i686" ]; then
|
elif [ $TERMUX_ARCH = "i686" ]; then
|
||||||
LLVM_TARGET_ARCH=X86
|
LLVM_TARGET_ARCH=X86
|
||||||
elif [ $TERMUX_ARCH = "aarch64" ]; then
|
elif [ $TERMUX_ARCH = "aarch64" ]; then
|
||||||
|
Loading…
Reference in New Issue
Block a user