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
This commit is contained in:
John Baldwin 2022-11-18 20:12:28 -08:00
parent 063b380f54
commit adc3c128c6

View File

@ -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>
#