From 5d291256dc9bf5cc1ea99236ec1742618f9cdaf2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D9=85=D9=87=D8=AF=D9=8A=20=D8=B4=D9=8A=D9=86=D9=88=D9=86?= =?UTF-8?q?=20=28Mehdi=20Chinoune=29?= Date: Fri, 12 Sep 2025 07:49:54 +0100 Subject: [PATCH] ghdl: support llvm-21 --- mingw-w64-ghdl/PKGBUILD | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/mingw-w64-ghdl/PKGBUILD b/mingw-w64-ghdl/PKGBUILD index 9ba5515904..2422d0e076 100644 --- a/mingw-w64-ghdl/PKGBUILD +++ b/mingw-w64-ghdl/PKGBUILD @@ -5,7 +5,7 @@ pkgname=( "${MINGW_PACKAGE_PREFIX}-${_realname}-mcode" ) pkgver=5.1.1 -pkgrel=1 +pkgrel=2 pkgdesc='GHDL: the open-source analyzer, compiler, simulator and (experimental) synthesizer for VHDL' arch=('any') mingw_arch=('mingw64' 'ucrt64') @@ -24,8 +24,15 @@ makedepends=( ) checkdepends=("${MINGW_PACKAGE_PREFIX}-python-pytest") options=(!emptydirs) -source=("https://github.com/ghdl/ghdl/archive/v${pkgver}/${_realname}-${pkgver}.tar.gz") -sha256sums=('00cd58ec8f25e2532465aabc8705f43071f20dc1d13e03fd9dc235523186fca9') +source=("https://github.com/ghdl/ghdl/archive/v${pkgver}/${_realname}-${pkgver}.tar.gz" + 001-support-llvm-21.patch::https://github.com/ghdl/ghdl/commit/560a822c.patch) +sha256sums=('00cd58ec8f25e2532465aabc8705f43071f20dc1d13e03fd9dc235523186fca9' + '0228cc3694dc6438419073e94bdca7f4dc0334d23f2428e3aeb1171db1763ef5') + +prepare() { + cd ${_realname}-${pkgver} + patch -p1 -i "${srcdir}"/001-support-llvm-21.patch +} build() { echo "Building ghdl-llvm..."