aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDima Panov <fluffy@FreeBSD.org>2023-01-23 08:39:22 +0000
committerDima Panov <fluffy@FreeBSD.org>2023-01-24 09:34:06 +0000
commit3efdfab9b59f2cd00beec5c863820f0057f1cfb3 (patch)
tree0034f8509077b843815da197d9e9d72c352dbb07
parent0abe5fe20a2752a08e737b73d70335d752b3e310 (diff)
downloadports-3efdfab9b59f2cd00beec5c863820f0057f1cfb3.tar.gz
ports-3efdfab9b59f2cd00beec5c863820f0057f1cfb3.zip
devel/boost*: force ports default llvm to build on -current
-rw-r--r--devel/boost-all/compiled.mk15
1 files changed, 14 insertions, 1 deletions
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