Skip to content

Commit

Permalink
dia: work around build errors with clang
Browse files Browse the repository at this point in the history
  • Loading branch information
lazka committed Sep 27, 2024
1 parent 1b186c7 commit e70186b
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion mingw-w64-dia/PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down Expand Up @@ -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}" \
Expand Down

0 comments on commit e70186b

Please sign in to comment.