diff options
author | Muhammad Moinur Rahman <bofh@FreeBSD.org> | 2023-08-18 23:08:26 +0200 |
---|---|---|
committer | Muhammad Moinur Rahman <bofh@FreeBSD.org> | 2023-08-19 04:52:47 +0200 |
commit | f07b5ade5369c6fa9601bc0bd0514fe112ef44d5 (patch) | |
tree | 67728d5f108e83225137811bd22af951e9096599 /misc | |
parent | f3eeadc739f9c01520fbd0bac6bcaa84fb404645 (diff) | |
download | freebsd-ports-f07b5ade5369c6fa9601bc0bd0514fe112ef44d5.zip |
misc/py-pytorch: Fix build on 14
Approved by: portmgr (blanket)
Sponsored by: The FreeBSD Foundation
Diffstat (limited to 'misc')
-rw-r--r-- | misc/py-pytorch/Makefile | 9 |
1 files changed, 9 insertions, 0 deletions
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 \ |