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:
parent
810f9b0004
commit
c9c58a1a39
1 changed files with 5 additions and 0 deletions
|
@ -2,6 +2,7 @@
|
|||
pkgname=lc0
|
||||
version=0.28.0
|
||||
revision=1
|
||||
archs="x86_64* i686* aarch64* armv[67]l* ppc64le*"
|
||||
build_style=meson
|
||||
configure_args="-Dgtest=false"
|
||||
_lczero_commit=5680c5fad9f3b52288d67f738b272fd09de5ee0b
|
||||
|
@ -29,6 +30,10 @@ if [ "$XBPS_TARGET_NO_ATOMIC8" ]; then
|
|||
makedepends+=" libatomic-devel"
|
||||
fi
|
||||
|
||||
case "$XBPS_TARGET_MACHINE" in
|
||||
ppc*) export CXXFLAGS+=" -DNO_WARN_X86_INTRINSICS";;
|
||||
esac
|
||||
|
||||
post_extract() {
|
||||
rmdir libs/lczero-common
|
||||
mv ../lczero-common-${_lczero_commit} libs/lczero-common
|
||||
|
|
Loading…
Reference in a new issue