git: 3797592a2778 - main - devel/concurrencpp: fix build on powerpc64le on 13.0-RELEASE

From: Piotr Kubaj <pkubaj_at_FreeBSD.org>
Date: Wed, 05 Jan 2022 19:07:09 UTC
The branch main has been updated by pkubaj:

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

commit 3797592a2778b5f6afcc1d9446263b5d4a4b7b5a
Author:     Piotr Kubaj <pkubaj@FreeBSD.org>
AuthorDate: 2022-01-05 19:05:00 +0000
Commit:     Piotr Kubaj <pkubaj@FreeBSD.org>
CommitDate: 2022-01-05 19:05:00 +0000

    devel/concurrencpp: fix build on powerpc64le on 13.0-RELEASE
    
    When building with LLVM11 (and 12):
    fatal error: error in backend: failed to perform tail call elimination on a call site marked musttail
    
    LLVM13 doesn't have this issue.
---
 devel/concurrencpp/Makefile | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/devel/concurrencpp/Makefile b/devel/concurrencpp/Makefile
index 2f35d9da2b21..d9e4c0fd9fbe 100644
--- a/devel/concurrencpp/Makefile
+++ b/devel/concurrencpp/Makefile
@@ -18,6 +18,15 @@ GH_ACCOUNT=	David-Haim
 
 CMAKE_ON=	BUILD_SHARED_LIBS
 
+.include <bsd.port.options.mk>
+
+.if ${ARCH} == powerpc64le && ${OSVERSION} < 1300523
+BUILD_DEPENDS=	llvm13>0:devel/llvm13
+CPP=		${LOCALBASE}/bin/clang-cpp13
+CC=		${LOCALBASE}/bin/clang13
+CXX=		${LOCALBASE}/bin/clang++13
+.endif
+
 do-test: # same as recommended in https://github.com/David-Haim/concurrencpp#building-installing-and-testing
 	@cd ${WRKSRC} && \
 		${CMAKE_BIN} -S test -B build/test && \