Date: Fri, 11 Apr 2025 09:57:27 -0400 From: John Baldwin <jhb@FreeBSD.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org Subject: Re: git: 6527682ab705 - main - src: Use gnu++17 as the default C++ standard Message-ID: <901115de-3075-4a63-a5c7-3c792730d048@FreeBSD.org> In-Reply-To: <202504111354.53BDsUue034371@gitrepo.freebsd.org> References: <202504111354.53BDsUue034371@gitrepo.freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On 4/11/25 09:54, John Baldwin wrote: > The branch main has been updated by jhb: > > URL: https://cgit.FreeBSD.org/src/commit/?id=6527682ab7058e5023a2a6dea01d51c15dca701f > > commit 6527682ab7058e5023a2a6dea01d51c15dca701f > Author: John Baldwin <jhb@FreeBSD.org> > AuthorDate: 2025-04-11 13:53:50 +0000 > Commit: John Baldwin <jhb@FreeBSD.org> > CommitDate: 2025-04-11 13:53:50 +0000 > > src: Use gnu++17 as the default C++ standard > > Previously the compiler's default C++ standard was used unlike C where > bsd.sys.mk explicitly sets a default language version. Setting an > explicit default version will give a more uniform experience across > different compilers and compiler versions. > > gnu++17 was chosen to match the default C standard. It is well > supported by a wide range of clang (5+) and GCC (9+) versions. > > gnu++17 is also the default C++ standard in recent versions of clang > (16+) and GCC (11+). As a result, many of the explicit CXXSTD > settings in Makefiles had the effect of lowering the C++ standard > instead of raising it as was originally intended and are removed. > > Note that the remaining explicit CXXSTD settings for atf and liblutok > explicitly lower the standard to C++11 due to use of the deprecated > auto_ptr<> template which is removed in later versions. > > Reviewed by: imp, asomers, dim, emaste > Differential Revision: https://reviews.freebsd.org/D49223 Forgot: PR: 285141 (exp-run) -- John Baldwin
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?901115de-3075-4a63-a5c7-3c792730d048>