diff options
author | Piotr Kubaj <pkubaj@FreeBSD.org> | 2022-07-31 19:05:52 +0200 |
---|---|---|
committer | Piotr Kubaj <pkubaj@FreeBSD.org> | 2022-08-01 23:23:05 +0200 |
commit | 91491f08908ea0949d6c620155ad594a301c38a3 (patch) | |
tree | 1a6451714cf887bc2bb80ae966744f479ee3e7aa | |
parent | security/gvm: update to 22.4.0 (diff) |
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.");
^ ~~~~~~~~~~~~~~~~~~~~~~~
-rw-r--r-- | misc/tvm/Makefile | 6 |
1 files changed, 6 insertions, 0 deletions
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 |