git: 7687d4ca4600 - stable/15 - atf, lutok, kyua: compile with CXXSTD=gnu++20

From: Enji Cooper <ngie_at_FreeBSD.org>
Date: Mon, 23 Nov 2026 01:18:48 UTC
The branch stable/15 has been updated by ngie:

URL: https://cgit.FreeBSD.org/src/commit/?id=7687d4ca4600a633fbd103f7ab9a38db0cb3ccc4

commit 7687d4ca4600a633fbd103f7ab9a38db0cb3ccc4
Author:     Enji Cooper <ngie@FreeBSD.org>
AuthorDate: 2026-10-31 20:13:06 +0000
Commit:     Enji Cooper <ngie@FreeBSD.org>
CommitDate: 2026-11-23 01:17:41 +0000

    atf, lutok, kyua: compile with CXXSTD=gnu++20
    
    All three of the test infrastructure components require at least C++20
    in order to build. Make that version the default to better match what
    is required in recent versions of the projects.
    
    MFC after:      1 week
    
    (cherry picked from commit 0e58fb271c6e1cbd4b2ae5d33da181b7e7c2f0d5)
---
 lib/atf/common.mk     | 2 ++
 lib/liblutok/Makefile | 2 ++
 usr.bin/kyua/Makefile | 2 ++
 3 files changed, 6 insertions(+)

diff --git a/lib/atf/common.mk b/lib/atf/common.mk
index e1967097d2c1..4b0f9911eecd 100644
--- a/lib/atf/common.mk
+++ b/lib/atf/common.mk
@@ -16,3 +16,5 @@ atf-version-real: .PHONY
 	@grep 'define VERSION' ${ATF}/config.h \
 	    | cut -d '"' -f 2 >atf-version-real
 CLEANFILES+= atf-version atf-version-real
+
+CXXSTD=		gnu++20
diff --git a/lib/liblutok/Makefile b/lib/liblutok/Makefile
index 08737afbb61a..a145cf3dab52 100644
--- a/lib/liblutok/Makefile
+++ b/lib/liblutok/Makefile
@@ -18,4 +18,6 @@ CFLAGS+=	-I${SRCTOP}/contrib/lutok/include \
 WARNS?=	3
 SHLIB_MAJOR=	0
 
+CXXSTD=		gnu++20
+
 .include <bsd.lib.mk>
diff --git a/usr.bin/kyua/Makefile b/usr.bin/kyua/Makefile
index 192a4e68734a..1b6889376f60 100644
--- a/usr.bin/kyua/Makefile
+++ b/usr.bin/kyua/Makefile
@@ -172,6 +172,8 @@ SRCS+=	os/freebsd/execenv_jail.cpp	\
 LIBADD+=	jail
 .endif
 
+CXXSTD=		gnu++20
+
 FILESGROUPS=	DOCS MISC STORE
 
 .if ${MK_EXAMPLES} != "no"