From: Vladimir Serbinenko Date: Tue, 1 Aug 2017 22:07:31 +0000 (+0200) Subject: Currently the only clang available on termux compiles for termux. This X-Git-Url: https://git.distorted.org.uk/~mdw/termux-packages/commitdiff_plain/280de3e5d9205a176cb48a04d4f55190fc74c326 Currently the only clang available on termux compiles for termux. This patc allows clang to be used in cross-compilations. E.g. to compile 32-bit binaries on 64-bit termux. --- diff --git a/packages/libllvm/build.sh b/packages/libllvm/build.sh index 9a4acba2..0fb58dbe 100644 --- a/packages/libllvm/build.sh +++ b/packages/libllvm/build.sh @@ -86,7 +86,7 @@ termux_step_pre_configure () { fi # see CMakeLists.txt and tools/clang/CMakeLists.txt TERMUX_PKG_EXTRA_CONFIGURE_ARGS+=" -DLLVM_DEFAULT_TARGET_TRIPLE=$LLVM_DEFAULT_TARGET_TRIPLE" - TERMUX_PKG_EXTRA_CONFIGURE_ARGS+=" -DLLVM_TARGET_ARCH=$LLVM_TARGET_ARCH -DLLVM_TARGETS_TO_BUILD=$LLVM_TARGET_ARCH" + TERMUX_PKG_EXTRA_CONFIGURE_ARGS+=" -DLLVM_TARGET_ARCH=$LLVM_TARGET_ARCH -DLLVM_TARGETS_TO_BUILD=all" } termux_step_post_make_install () {