git: 3efdfab9b59f - main - devel/boost*: force ports default llvm to build on -current

From: Dima Panov <fluffy_at_FreeBSD.org>
Date: Tue, 24 Jan 2023 09:35:59 UTC
The branch main has been updated by fluffy:

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

commit 3efdfab9b59f2cd00beec5c863820f0057f1cfb3
Author:     Dima Panov <fluffy@FreeBSD.org>
AuthorDate: 2023-01-23 08:39:22 +0000
Commit:     Dima Panov <fluffy@FreeBSD.org>
CommitDate: 2023-01-24 09:34:06 +0000

    devel/boost*: force ports default llvm to build on -current
---
 devel/boost-all/compiled.mk | 15 ++++++++++++++-
 1 file changed, 14 insertions(+), 1 deletion(-)

diff --git a/devel/boost-all/compiled.mk b/devel/boost-all/compiled.mk
index 4ce2d7421a3a..633d45e1a225 100644
--- a/devel/boost-all/compiled.mk
+++ b/devel/boost-all/compiled.mk
@@ -4,7 +4,7 @@ MAKE_CMD?=	bjam
 MAKEFILE=	#
 MAKE_FLAGS=	#
 ALL_TARGET=	stage
-USES+=		compiler:c++17-lang
+#USES+=		compiler:c++17-lang
 USE_CXXSTD=	gnu++17
 
 PLIST_SUB+=	BOOST_MAJOR_VER=${BOOST_MAJOR_VER} \
@@ -41,6 +41,19 @@ OPTIMIZED_CFLAGS_MAKE_ARGS=	inlining=full
 # https://lists.freebsd.org/pipermail/svn-src-all/2015-March/101722.html
 MAKE_ARGS+=	pch=off
 
+.include <bsd.port.options.mk>
+
+.if ${OSVERSION} > 1400000
+USES+=	llvm:build
+CC=	${_LLVM_MK_PREFIX}/bin/clang
+CPP=	${_LLVM_MK_PREFIX}/bin/clang-cpp
+CXX=	${_LLVM_MK_PREFIX}/bin/clang++
+#LD?=	${_LLVM_MK_PREFIX}/bin/ld
+CHOSEN_COMPILER_TYPE=	clang
+.else
+USES+=	compiler:c++17-lang
+.endif
+
 post-patch:
 .if defined(USE_BINUTILS)
 	@${ECHO} "using ${CHOSEN_COMPILER_TYPE} : : ${CXX} : <linkflags>-B${LOCALBASE}/bin ;" >> ${WRKSRC}/tools/build/src/user-config.jam