svn commit: r540729 - head/math/onednn
Piotr Kubaj
pkubaj at FreeBSD.org
Sun Jun 28 20:43:38 UTC 2020
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
More information about the svn-ports-all
mailing list