From e70186bd5a5f20110ee678420618e76696d9c09c Mon Sep 17 00:00:00 2001 From: Christoph Reiter Date: Fri, 27 Sep 2024 11:00:13 +0200 Subject: [PATCH] dia: work around build errors with clang --- mingw-w64-dia/PKGBUILD | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/mingw-w64-dia/PKGBUILD b/mingw-w64-dia/PKGBUILD index 24cdad6c516d9..a90016d471bf2 100644 --- a/mingw-w64-dia/PKGBUILD +++ b/mingw-w64-dia/PKGBUILD @@ -4,7 +4,7 @@ _realname=dia pkgbase=mingw-w64-${_realname} pkgname=("${MINGW_PACKAGE_PREFIX}-${_realname}") pkgver=0.97.0.r2610.g9fcced5ed -pkgrel=5 +pkgrel=6 pkgdesc="A gtk+ based diagram creation program (mingw-w64)" arch=('any') mingw_arch=('mingw64' 'ucrt64' 'clang64' 'clangarm64') @@ -52,6 +52,11 @@ prepare() { build() { mkdir -p build-${MSYSTEM} && cd build-${MSYSTEM} + if [[ $MINGW_PACKAGE_PREFIX == *-clang-* ]]; then + CFLAGS+=" -Wno-error=incompatible-pointer-types-discards-qualifiers" + CXXFLAGS+=" -Wno-error=incompatible-pointer-types-discards-qualifiers" + fi + MSYS2_ARG_CONV_EXCL="--prefix=" \ ${MINGW_PREFIX}/bin/meson setup \ --prefix="${MINGW_PREFIX}" \