Date: Sun, 28 Jun 2020 20:43:37 +0000 (UTC) From: Piotr Kubaj <pkubaj@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r540729 - head/math/onednn Message-ID: <202006282043.05SKhbCM009689@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: pkubaj Date: Sun Jun 28 20:43:37 2020 New Revision: 540729 URL: https://svnweb.freebsd.org/changeset/ports/540729 Log: math/onednn: fix build on non-amd64 non-aarch64 onednn seems to support only amd64 and aarch64, but there is also generic target which also works on other architectures. Modified: head/math/onednn/Makefile Modified: head/math/onednn/Makefile ============================================================================== --- head/math/onednn/Makefile Sun Jun 28 16:40:33 2020 (r540728) +++ head/math/onednn/Makefile Sun Jun 28 20:43:37 2020 (r540729) @@ -31,6 +31,12 @@ OPENMP_BROKEN_OFF= still requires omp.h, see https://g CXXFLAGS_amd64= -msse4.1 CXXFLAGS_i386= -msse4.1 +.include <bsd.port.options.mk> + +.if ${ARCH} != aarch64 && ${ARCH} != amd64 +CMAKE_ARGS+= -DDNNL_TARGET_ARCH:STRING="GENERIC" +.endif + post-install: @${RM} -r ${STAGEDIR}${PREFIX}/share/doc
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202006282043.05SKhbCM009689>