git: f46766b0190c - stable/14 - atf, lutok, kyua: compile with CXXSTD=gnu++20
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 23 Nov 2026 01:39:40 UTC
The branch stable/14 has been updated by ngie:
URL: https://cgit.FreeBSD.org/src/commit/?id=f46766b0190c67c560d22fabee1f29fefbb3793d
commit f46766b0190c67c560d22fabee1f29fefbb3793d
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:38:03 +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 1ac88cfa06b3..56c1225a237b 100644
--- a/lib/liblutok/Makefile
+++ b/lib/liblutok/Makefile
@@ -19,4 +19,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 3a126640c84e..44a38b33ca86 100644
--- a/usr.bin/kyua/Makefile
+++ b/usr.bin/kyua/Makefile
@@ -175,6 +175,8 @@ SRCS+= os/freebsd/execenv_jail.cpp \
LIBADD+= jail
.endif
+CXXSTD= gnu++20
+
FILESGROUPS= DOCS MISC STORE
.if ${MK_EXAMPLES} != "no"