Browse Source

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.
android-5
Vladimir Serbinenko 8 years ago
committed by Fredrik Fornwall
parent
commit
280de3e5d9
  1. 2
      packages/libllvm/build.sh

2
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 () {

Loading…
Cancel
Save