From 35f886abbda0cc2bf59140813cb0bea007359156 Mon Sep 17 00:00:00 2001 From: Butta Date: Sat, 21 Sep 2019 23:23:00 +0530 Subject: [PATCH] llbuild: update from 0.1.1 to 5.1 --- packages/llbuild/build.sh | 6 +-- .../include-llvm-Config-config.h.patch | 40 +++++++++---------- 2 files changed, 23 insertions(+), 23 deletions(-) diff --git a/packages/llbuild/build.sh b/packages/llbuild/build.sh index ea6a5b2f6..cb303c133 100644 --- a/packages/llbuild/build.sh +++ b/packages/llbuild/build.sh @@ -1,7 +1,7 @@ TERMUX_PKG_HOMEPAGE=https://github.com/apple/swift-llbuild TERMUX_PKG_DESCRIPTION="A low-level build system, used by the Swift Package Manager" TERMUX_PKG_LICENSE="Apache-2.0, NCSA" -TERMUX_PKG_VERSION=0.1.1 -TERMUX_PKG_SRCURL=https://github.com/apple/swift-llbuild/archive/${TERMUX_PKG_VERSION}.tar.gz -TERMUX_PKG_SHA256=8f04c76dcc65bd47e197574998b30dfef1eab10a81aba704b605d12bd9c31b68 +TERMUX_PKG_VERSION=5.1 +TERMUX_PKG_SRCURL=https://github.com/apple/swift-llbuild/archive/swift-${TERMUX_PKG_VERSION}-RELEASE.tar.gz +TERMUX_PKG_SHA256=cbd228619d1172f7f6d38983f0419226baa1cfbecc6afac891856fcb46ba4920 TERMUX_PKG_DEPENDS="libc++, libandroid-spawn, libsqlite" diff --git a/packages/llbuild/include-llvm-Config-config.h.patch b/packages/llbuild/include-llvm-Config-config.h.patch index 57550e3f8..01bc5d087 100644 --- a/packages/llbuild/include-llvm-Config-config.h.patch +++ b/packages/llbuild/include-llvm-Config-config.h.patch @@ -1,36 +1,36 @@ diff --git a/include/llvm/Config/config.h b/include/llvm/Config/config.h -index f1fe468..18a2bd6 100644 +index 9cf1c89..9af2945 100644 --- a/include/llvm/Config/config.h +++ b/include/llvm/Config/config.h -@@ -23,7 +23,9 @@ - #endif +@@ -14,7 +14,9 @@ + #define ENABLE_CRASH_OVERRIDES 1 /* Define to 1 if you have the `backtrace' function. */ +#if !defined(__ANDROID__) - #define HAVE_BACKTRACE 1 + #define HAVE_BACKTRACE TRUE +#endif - /* Define to 1 if you have the header file. */ - #define HAVE_CXXABI_H 1 -@@ -53,7 +55,9 @@ - #define HAVE_ERRNO_H 1 + #define BACKTRACE_HEADER - /* Define to 1 if you have the header file. */ -+#if !defined(__ANDROID__) - #define HAVE_EXECINFO_H 1 -+#endif +@@ -74,7 +76,11 @@ + /* #undef HAVE_FFI_H */ - /* Define to 1 if you have the header file. */ - #define HAVE_FCNTL_H 1 -@@ -62,7 +66,11 @@ - #define HAVE_FUTIMES 1 - - /* Define to 1 if you have the `futimens' function */ + /* Define to 1 if you have the `futimens' function. */ +#if defined(__ANDROID__) +#define HAVE_FUTIMENS 1 +#else /* #undef HAVE_FUTIMENS */ +#endif - /* Define to 1 if you have the `getpagesize' function. */ - #define HAVE_GETPAGESIZE 1 + /* Define to 1 if you have the `futimes' function. */ + #define HAVE_FUTIMES 1 +@@ -104,7 +110,9 @@ + #define HAVE_LIBPTHREAD 1 + + /* Define to 1 if you have the `pthread_getname_np' function. */ ++#if !defined(__ANDROID__) + #define HAVE_PTHREAD_GETNAME_NP 1 ++#endif + + /* Define to 1 if you have the `pthread_setname_np' function. */ + #define HAVE_PTHREAD_SETNAME_NP 1