git: 91491f08908e - main - misc/tvm: fix build on big-endian
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 01 Aug 2022 21:23:12 UTC
The branch main has been updated by pkubaj:
URL: https://cgit.FreeBSD.org/ports/commit/?id=91491f08908ea0949d6c620155ad594a301c38a3
commit 91491f08908ea0949d6c620155ad594a301c38a3
Author: Piotr Kubaj <pkubaj@FreeBSD.org>
AuthorDate: 2022-07-31 17:05:52 +0000
Commit: Piotr Kubaj <pkubaj@FreeBSD.org>
CommitDate: 2022-08-01 21:23:05 +0000
misc/tvm: fix build on big-endian
/wrkdirs/usr/ports/misc/tvm/work/tvm-0.9.0/src/runtime/rpc/../minrpc/minrpc_server.h:785:3: error: static_assert failed due to requirement '(4321 == 1234) == 1' "MinRPC only works on little endian."
static_assert(DMLC_LITTLE_ENDIAN == 1, "MinRPC only works on little endian.");
^ ~~~~~~~~~~~~~~~~~~~~~~~
---
misc/tvm/Makefile | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/misc/tvm/Makefile b/misc/tvm/Makefile
index 9902257cc330..95d9f0b5117f 100644
--- a/misc/tvm/Makefile
+++ b/misc/tvm/Makefile
@@ -36,6 +36,12 @@ LLVM_CMAKE_ON= -DUSE_LLVM=${LOCALBASE}/bin/llvm-config${LLVM_VERSION}
LLVM_BUILD_DEPENDS= llvm-config${LLVM_VERSION}:devel/llvm${LLVM_VERSION}
LLVM_RUN_DEPENDS= llvm-config${LLVM_VERSION}:devel/llvm${LLVM_VERSION}
+.include <bsd.port.options.mk>
+
+.if ${ARCH} == powerpc || ${ARCH} == powerpc64
+CMAKE_ARGS+= -DUSE_RPC:BOOL=OFF
+.endif
+
post-test:
@cd ${TEST_WRKSRC} && ./cpptest