git: adc3c128c660 - main - src.opts.mk: Require C++20 for C++ support.
Date: Sat, 19 Nov 2022 04:13:12 UTC
The branch main has been updated by jhb:
URL: https://cgit.FreeBSD.org/src/commit/?id=adc3c128c6603054586a993d117e5dd808deac17
commit adc3c128c6603054586a993d117e5dd808deac17
Author: John Baldwin <jhb@FreeBSD.org>
AuthorDate: 2022-11-19 04:12:28 +0000
Commit: John Baldwin <jhb@FreeBSD.org>
CommitDate: 2022-11-19 04:12:28 +0000
src.opts.mk: Require C++20 for C++ support.
libc++ requires C++20, so mark C++ (MK_CXX) as broken if the compiler
does not support C++20.
Reviewed by: emaste
Differential Revision: https://reviews.freebsd.org/D36893
---
share/mk/src.opts.mk | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/share/mk/src.opts.mk b/share/mk/src.opts.mk
index f69208f21556..5089a034350d 100644
--- a/share/mk/src.opts.mk
+++ b/share/mk/src.opts.mk
@@ -348,6 +348,11 @@ __DEFAULT_YES_OPTIONS+=OPENMP
__DEFAULT_NO_OPTIONS+=OPENMP
.endif
+# libc++ requires C++20
+.if !${COMPILER_FEATURES:Mc++20}
+BROKEN_OPTIONS+=CXX
+.endif
+
.include <bsd.mkopt.mk>
#