python-llvmlite: update to 0.45.0
This commit is contained in:
parent
a0174cc7ad
commit
413e3961d8
@ -3,8 +3,8 @@
|
|||||||
_realname=llvmlite
|
_realname=llvmlite
|
||||||
pkgbase=mingw-w64-python-${_realname}
|
pkgbase=mingw-w64-python-${_realname}
|
||||||
pkgname=("${MINGW_PACKAGE_PREFIX}-python-${_realname}")
|
pkgname=("${MINGW_PACKAGE_PREFIX}-python-${_realname}")
|
||||||
pkgver=0.44.0
|
pkgver=0.45.0
|
||||||
pkgrel=2
|
pkgrel=1
|
||||||
pkgdesc='Lightweight LLVM python binding for writing JIT compilers (mingw-w64)'
|
pkgdesc='Lightweight LLVM python binding for writing JIT compilers (mingw-w64)'
|
||||||
arch=('any')
|
arch=('any')
|
||||||
mingw_arch=('mingw64' 'ucrt64' 'clang64' 'clangarm64')
|
mingw_arch=('mingw64' 'ucrt64' 'clang64' 'clangarm64')
|
||||||
@ -23,13 +23,11 @@ makedepends=("${MINGW_PACKAGE_PREFIX}-python-build"
|
|||||||
"${MINGW_PACKAGE_PREFIX}-cc"
|
"${MINGW_PACKAGE_PREFIX}-cc"
|
||||||
"${MINGW_PACKAGE_PREFIX}-cmake"
|
"${MINGW_PACKAGE_PREFIX}-cmake"
|
||||||
"${MINGW_PACKAGE_PREFIX}-ninja"
|
"${MINGW_PACKAGE_PREFIX}-ninja"
|
||||||
"${MINGW_PACKAGE_PREFIX}-llvm-16"
|
"${MINGW_PACKAGE_PREFIX}-llvm-20"
|
||||||
"${MINGW_PACKAGE_PREFIX}-compiler-rt-16")
|
"${MINGW_PACKAGE_PREFIX}-compiler-rt-20")
|
||||||
source=("https://pypi.org/packages/source/${_realname::1}/${_realname}/${_realname}-${pkgver}.tar.gz"
|
source=("https://pypi.org/packages/source/${_realname::1}/${_realname}/${_realname}-${pkgver}.tar.gz"
|
||||||
"multi-defs.patch"
|
|
||||||
"path_fix.patch")
|
"path_fix.patch")
|
||||||
sha256sums=('07667d66a5d150abed9157ab6c0b9393c9356f229784a4385c02f99e94fc94d4'
|
sha256sums=('ceb0bcd20da949178bd7ab78af8de73e9f3c483ac46b5bef39f06a4862aa8336'
|
||||||
'b4610934ac8fd7e614d9ea920856ff6da2fbeb146028a664ada8543b8b33ec56'
|
|
||||||
'813ecc48f18543f0d36b03c7596a1a6a26be31b9cfa44f1111ac232821844a79')
|
'813ecc48f18543f0d36b03c7596a1a6a26be31b9cfa44f1111ac232821844a79')
|
||||||
|
|
||||||
apply_patch_with_msg() {
|
apply_patch_with_msg() {
|
||||||
@ -44,7 +42,6 @@ prepare() {
|
|||||||
cd "${_realname}-${pkgver}"
|
cd "${_realname}-${pkgver}"
|
||||||
|
|
||||||
apply_patch_with_msg \
|
apply_patch_with_msg \
|
||||||
multi-defs.patch \
|
|
||||||
path_fix.patch
|
path_fix.patch
|
||||||
|
|
||||||
sed -i "s,_MSC_VER,_WIN32," ffi/core.h
|
sed -i "s,_MSC_VER,_WIN32," ffi/core.h
|
||||||
@ -54,7 +51,7 @@ build() {
|
|||||||
cp -r "${_realname}-${pkgver}" "python-build-${MSYSTEM}" && cd "python-build-${MSYSTEM}"
|
cp -r "${_realname}-${pkgver}" "python-build-${MSYSTEM}" && cd "python-build-${MSYSTEM}"
|
||||||
|
|
||||||
export CMAKE_GENERATOR="Ninja"
|
export CMAKE_GENERATOR="Ninja"
|
||||||
export LLVM_DIR=${MINGW_PREFIX}/opt/llvm-16/lib/cmake/llvm
|
export LLVM_DIR=${MINGW_PREFIX}/opt/llvm-20/lib/cmake/llvm
|
||||||
|
|
||||||
python -m build --wheel --skip-dependency-check --no-isolation
|
python -m build --wheel --skip-dependency-check --no-isolation
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,12 +0,0 @@
|
|||||||
--- llvmlite-0.34.0rc1/ffi/CMakeLists.txt.old 2020-08-05 13:33:58.000000000 -0700
|
|
||||||
+++ llvmlite-0.34.0rc1/ffi/CMakeLists.txt 2020-08-11 17:01:54.888723700 -0700
|
|
||||||
@@ -49,5 +49,9 @@
|
|
||||||
# so the "OptRemarks" library is removed from this list.
|
|
||||||
list(REMOVE_ITEM llvm_libs "OptRemarks")
|
|
||||||
|
|
||||||
+# Multiple definition error workaround
|
|
||||||
+list(REMOVE_ITEM llvm_libs "LLVM")
|
|
||||||
+list(REMOVE_ITEM llvm_libs "LTO")
|
|
||||||
+
|
|
||||||
# Link against LLVM libraries
|
|
||||||
target_link_libraries(llvmlite ${llvm_libs})
|
|
||||||
Loading…
x
Reference in New Issue
Block a user