git: 03b5b12c2073 - stable/13 - bsd.compiler.mk: Add a c++20 compiler feature.
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 26 May 2023 08:48:07 UTC
The branch stable/13 has been updated by dim: URL: https://cgit.FreeBSD.org/src/commit/?id=03b5b12c20733e9b9b4121efc87ba59bd3448c7c commit 03b5b12c20733e9b9b4121efc87ba59bd3448c7c Author: John Baldwin <jhb@FreeBSD.org> AuthorDate: 2022-11-19 04:11:59 +0000 Commit: Dimitry Andric <dim@FreeBSD.org> CommitDate: 2023-05-26 08:42:09 +0000 bsd.compiler.mk: Add a c++20 compiler feature. This is enabled for clang versions 10+ and GCC versions 10+. Reviewed by: imp Differential Revision: https://reviews.freebsd.org/D36892 (cherry picked from commit 063b380f54b04eaab8ee26e39d6e8128523d16ad) --- share/mk/bsd.compiler.mk | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/share/mk/bsd.compiler.mk b/share/mk/bsd.compiler.mk index 71f0df70ad25..26f735c579e6 100644 --- a/share/mk/bsd.compiler.mk +++ b/share/mk/bsd.compiler.mk @@ -234,6 +234,10 @@ ${X_}COMPILER_FEATURES+= c++11 c++14 (${${X_}COMPILER_TYPE} == "gcc" && ${${X_}COMPILER_VERSION} >= 70000) ${X_}COMPILER_FEATURES+= c++17 .endif +.if (${${X_}COMPILER_TYPE} == "clang" && ${${X_}COMPILER_VERSION} >= 100000) || \ + (${${X_}COMPILER_TYPE} == "gcc" && ${${X_}COMPILER_VERSION} >= 100100) +${X_}COMPILER_FEATURES+= c++20 +.endif .if ${${X_}COMPILER_TYPE} == "clang" ${X_}COMPILER_FEATURES+= retpoline init-all .endif