Date: Mon, 13 Jan 2020 10:38:34 +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: r522877 - head/misc/mnn Message-ID: <202001131038.00DAcY5F026329@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: pkubaj Date: Mon Jan 13 10:38:34 2020 New Revision: 522877 URL: https://svnweb.freebsd.org/changeset/ports/522877 Log: misc/mnn: fix build on non-x86 Disable AVX and SSE on non-x86 architectures. PR: 243303 Approved by: yuri (maintainer) Modified: head/misc/mnn/Makefile Modified: head/misc/mnn/Makefile ============================================================================== --- head/misc/mnn/Makefile Mon Jan 13 10:26:46 2020 (r522876) +++ head/misc/mnn/Makefile Mon Jan 13 10:38:34 2020 (r522877) @@ -26,10 +26,17 @@ LDFLAGS+= -pthread CFLAGS+= -fPIC # workaround for https://github.com/alibaba/MNN/issues/553 CXXFLAGS+= -fPIC +.include <bsd.port.pre.mk> + +.if ${ARCH} != amd64 && ${ARCH} != i386 +CMAKE_ARGS+= -DMNN_USE_AVX:BOOL=OFF \ + -DMNN_USE_SSE:BOOL=OFF +.endif + do-test: @cd ${BUILD_WRKSRC} && \ ${SETENV} ${CONFIGURE_ENV} ${CMAKE_BIN} ${CMAKE_ARGS} -DMNN_BUILD_TEST:BOOL=ON ${CMAKE_SOURCE_PATH} && \ ${SETENV} ${MAKE_ENV} ${MAKE_CMD} ${MAKE_ARGS} ${ALL_TARGET} && \ (cd ${BUILD_WRKSRC} && ./run_test.out) -.include <bsd.port.mk> +.include <bsd.port.post.mk>
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202001131038.00DAcY5F026329>