pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/mk mk: add c++20 and gnu++20
details: https://anonhg.NetBSD.org/pkgsrc/rev/613eebced622
branches: trunk
changeset: 770565:613eebced622
user: wiz <wiz%pkgsrc.org@localhost>
date: Fri Dec 03 07:40:26 2021 +0000
description:
mk: add c++20 and gnu++20
diffstat:
mk/compiler.mk | 9 +++++----
1 files changed, 5 insertions(+), 4 deletions(-)
diffs (30 lines):
diff -r 04443cb9c77e -r 613eebced622 mk/compiler.mk
--- a/mk/compiler.mk Fri Dec 03 01:05:29 2021 +0000
+++ b/mk/compiler.mk Fri Dec 03 07:40:26 2021 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: compiler.mk,v 1.95 2020/06/02 06:58:13 rillig Exp $
+# $NetBSD: compiler.mk,v 1.96 2021/12/03 07:40:26 wiz Exp $
#
# This Makefile fragment implements handling for supported C/C++/Fortran
# compilers.
@@ -49,8 +49,9 @@
# visible to the build environment, installing them if
# necessary. Flags such as -std=c++99 are also added.
# Valid values are: c, c99, c++, c++03, gnu++03, c++0x, gnu++0x,
-# c++11, gnu++11, c++14, gnu++14, c++17, gnu++17, fortran,
-# fortran77, java, objc, obj-c++, and ada. The default is "c".
+# c++11, gnu++11, c++14, gnu++14, c++17, gnu++17, c++20, gnu++20,
+# fortran, fortran77, java, objc, obj-c++, and ada.
+# The default is "c".
#
# The above is partly aspirational. As an example c++11 does
# not force a new enough version of gcc.
@@ -87,7 +88,7 @@
USE_LANGUAGES+= c
.endif
-_CXX_STD_VERSIONS= gnu++17 c++17 gnu++14 c++14 gnu++11 c++11 gnu++0x c++0x gnu++03 c++03
+_CXX_STD_VERSIONS= gnu++20 c++20 gnu++17 c++17 gnu++14 c++14 gnu++11 c++11 gnu++0x c++0x gnu++03 c++03
.for _version_ in ${_CXX_STD_VERSIONS}
. if !empty(USE_LANGUAGES:M${_version_})
USE_LANGUAGES+= c++
Home |
Main Index |
Thread Index |
Old Index