lc0: enable sse intrinsics on ppc64le + disable on big endian

This code is written heavily against x86 with a bunch of ifdefs
for ARM/aarch64 to make that build. Therefore, restrict archs
and instead of patching the code for ppc64le, allow usage of
the SSE intrinsics.
This commit is contained in:
q66 2021-11-23 20:24:24 +01:00
parent 810f9b0004
commit c9c58a1a39

View file

@ -2,6 +2,7 @@
pkgname=lc0 pkgname=lc0
version=0.28.0 version=0.28.0
revision=1 revision=1
archs="x86_64* i686* aarch64* armv[67]l* ppc64le*"
build_style=meson build_style=meson
configure_args="-Dgtest=false" configure_args="-Dgtest=false"
_lczero_commit=5680c5fad9f3b52288d67f738b272fd09de5ee0b _lczero_commit=5680c5fad9f3b52288d67f738b272fd09de5ee0b
@ -29,6 +30,10 @@ if [ "$XBPS_TARGET_NO_ATOMIC8" ]; then
makedepends+=" libatomic-devel" makedepends+=" libatomic-devel"
fi fi
case "$XBPS_TARGET_MACHINE" in
ppc*) export CXXFLAGS+=" -DNO_WARN_X86_INTRINSICS";;
esac
post_extract() { post_extract() {
rmdir libs/lczero-common rmdir libs/lczero-common
mv ../lczero-common-${_lczero_commit} libs/lczero-common mv ../lczero-common-${_lczero_commit} libs/lczero-common