diff --git a/packages/clang/build.sh b/packages/clang/build.sh index e7fe3d2ea..5a3fb0be7 100644 --- a/packages/clang/build.sh +++ b/packages/clang/build.sh @@ -2,7 +2,7 @@ TERMUX_PKG_HOMEPAGE=http://clang.llvm.org/ TERMUX_PKG_DESCRIPTION="C and C++ frontend for the LLVM compiler" _PKG_MAJOR_VERSION=3.8 TERMUX_PKG_VERSION=${_PKG_MAJOR_VERSION}.0 -TERMUX_PKG_BUILD_REVISION=2 +TERMUX_PKG_BUILD_REVISION=3 TERMUX_PKG_SRCURL=http://llvm.org/releases/${TERMUX_PKG_VERSION}/llvm-${TERMUX_PKG_VERSION}.src.tar.xz TERMUX_PKG_HOSTBUILD=true TERMUX_PKG_RM_AFTER_INSTALL="bin/macho-dump bin/bugpoint bin/llvm-tblgen lib/BugpointPasses.so lib/LLVMHello.so" diff --git a/packages/clang/tools-clang-lib-Driver-Tools.cpp.patch b/packages/clang/tools-clang-lib-Driver-Tools.cpp.patch index bc839244b..4ccaae3ba 100644 --- a/packages/clang/tools-clang-lib-Driver-Tools.cpp.patch +++ b/packages/clang/tools-clang-lib-Driver-Tools.cpp.patch @@ -6,12 +6,12 @@ diff -u -r ../llvm-3.8.0.src/tools/clang/lib/Driver/Tools.cpp ./tools/clang/lib/ break; case llvm::Triple::Android: - ABI = (SubArch == 7) ? FloatABI::SoftFP : FloatABI::Soft; -+ ABI = FloatABI::Hard; ++ ABI = FloatABI::SoftFP; break; default: // Assume "soft", but warn the user we are guessing. - ABI = FloatABI::Soft; -+ ABI = FloatABI::Hard; ++ ABI = FloatABI::SoftFP; if (Triple.getOS() != llvm::Triple::UnknownOS || !Triple.isOSBinFormatMachO()) D.Diag(diag::warn_drv_assuming_mfloat_abi_is) << "soft";