Fix compilation of mingw-w64-rapidjson with GCC 14
This commit is contained in:
parent
3e6eb5bc05
commit
baa46e7620
|
@ -5,7 +5,7 @@
|
|||
_reponame=rapidjson
|
||||
pkgname=mingw-w64-$_reponame
|
||||
pkgver=1.1.0
|
||||
pkgrel=6
|
||||
pkgrel=7
|
||||
pkgdesc='A fast JSON parser/generator for C++ with both SAX/DOM style API (mingw-w64)'
|
||||
arch=('any')
|
||||
url='https://github.com/miloyip/rapidjson'
|
||||
|
@ -14,9 +14,11 @@ makedepends=('mingw-w64-gcc' 'mingw-w64-cmake' 'ninja' 'git')
|
|||
checkdepends=('mingw-w64-wine' 'python')
|
||||
source=(
|
||||
"$_reponame-$pkgver.tar.gz::https://github.com/miloyip/$_reponame/archive/v$pkgver.tar.gz"
|
||||
'https://github.com/Tencent/rapidjson/commit/3b2441b8.patch'
|
||||
'git+https://github.com/google/googletest.git#commit=2fe3bd994b3189899d93f1d5a881e725e046fdc2')
|
||||
sha256sums=('bf7ced29704a1e696fbccf2a2b4ea068e7774fa37f6d7dd4039d0787f8bed98e'
|
||||
'SKIP')
|
||||
sha512sums=('2e82a4bddcd6c4669541f5945c2d240fb1b4fdd6e239200246d3dd50ce98733f0a4f6d3daa56f865d8c88779c036099c52a9ae85d47ad263686b68a88d832dff'
|
||||
'5002ff20a65b7d057411e39adf7f5a29eddff818d20579900b655df4d838b984a1b68f488232e1990b592943a70943619d924da1c4e1d2ce0d3ef65bc40f75d6'
|
||||
SKIP)
|
||||
options=(!buildflags staticlibs !strip !emptydirs)
|
||||
_architectures='i686-w64-mingw32 x86_64-w64-mingw32'
|
||||
|
||||
|
@ -26,6 +28,8 @@ prepare() {
|
|||
# disable -Werror as it is done in the regular rapidjson package
|
||||
find -name CMakeLists.txt | xargs sed -e 's|-Werror||' -i # Don't use -Werror
|
||||
|
||||
patch -p1 -i ../3b2441b8.patch # Fix build with GCC 14
|
||||
|
||||
# exclude tests which don't run within WINE
|
||||
sed -e 's:\(filestreamtest\|encodedstreamtest\|prettywritertest\|ostreamwrappertest\)\.cpp:#\0:g' -i test/unittest/CMakeLists.txt
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue