Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 19 Aug 2023 02:52:58 GMT
From:      Muhammad Moinur Rahman <bofh@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: f07b5ade5369 - main - misc/py-pytorch: Fix build on 14
Message-ID:  <202308190252.37J2qwwd083021@gitrepo.freebsd.org>

index | next in thread | raw e-mail

The branch main has been updated by bofh:

URL: https://cgit.FreeBSD.org/ports/commit/?id=f07b5ade5369c6fa9601bc0bd0514fe112ef44d5

commit f07b5ade5369c6fa9601bc0bd0514fe112ef44d5
Author:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
AuthorDate: 2023-08-18 21:08:26 +0000
Commit:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
CommitDate: 2023-08-19 02:52:47 +0000

    misc/py-pytorch: Fix build on 14
    
    Approved by:    portmgr (blanket)
    Sponsored by:   The FreeBSD Foundation
---
 misc/py-pytorch/Makefile | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/misc/py-pytorch/Makefile b/misc/py-pytorch/Makefile
index 4c2569140696..2a7737b318fc 100644
--- a/misc/py-pytorch/Makefile
+++ b/misc/py-pytorch/Makefile
@@ -50,6 +50,15 @@ BINARY_ALIAS=	make=${GMAKE}
 
 POST_PLIST=	fix-plist
 
+.include <bsd.port.options.mk>
+
+.if ${OPSYS} == FreeBSD && ( ${OSVERSION} >= 1400091 || ( ${OSVERSION} >= 1302507 && ${OSVERSION} < 1400000 ))
+USES+=	llvm:max=15
+CC=	clang${LLVM_VERSION}
+CPP=	clang-cpp${LLVM_VERSION}
+CXX=	clang++${LLVM_VERSION}
+.endif
+
 post-install: # strip binaries
 	@${STRIP_CMD} \
 		${STAGEDIR}${PYTHON_SITELIBDIR}/torch/bin/torch_shm_manager \


home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202308190252.37J2qwwd083021>