From c9c58a1a39a505254156e2ca94aac57847c80947 Mon Sep 17 00:00:00 2001 From: q66 Date: Tue, 23 Nov 2021 20:24:24 +0100 Subject: [PATCH] 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. --- srcpkgs/lc0/template | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/srcpkgs/lc0/template b/srcpkgs/lc0/template index ba2e8dd8bb7..50863ab6da3 100644 --- a/srcpkgs/lc0/template +++ b/srcpkgs/lc0/template @@ -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