diff options
author | Akim Demaille <akim.demaille@gmail.com> | 2021-08-12 08:31:38 +0200 |
---|---|---|
committer | Akim Demaille <akim.demaille@gmail.com> | 2021-08-12 09:07:36 +0200 |
commit | 15ba35a51bee27c8b7d4c5ef47673de4db6528af (patch) | |
tree | c442d772351420a0591d11f8e4c0ca03ac7f46f5 /tests | |
parent | db66acc5d0f433a32d49eb840bd319d25b3a657f (diff) | |
download | bison-15ba35a51bee27c8b7d4c5ef47673de4db6528af.tar.gz |
build: check for C++ 20 and 2b
C++20 is released.
* configure.ac, m4/bison-cxx-std.m4, tests/atlocal.in,
* tests/local.at: Replace 2a with 20, and add support for 2b.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/atlocal.in | 3 | ||||
-rw-r--r-- | tests/local.at | 6 |
2 files changed, 6 insertions, 3 deletions
diff --git a/tests/atlocal.in b/tests/atlocal.in index 3481d22b..eabff450 100644 --- a/tests/atlocal.in +++ b/tests/atlocal.in @@ -60,7 +60,8 @@ fi : ${CXX11_CXXFLAGS='@CXX11_CXXFLAGS@'} : ${CXX14_CXXFLAGS='@CXX14_CXXFLAGS@'} : ${CXX17_CXXFLAGS='@CXX17_CXXFLAGS@'} -: ${CXX2A_CXXFLAGS='@CXX2A_CXXFLAGS@'} +: ${CXX20_CXXFLAGS='@CXX20_CXXFLAGS@'} +: ${CXX2B_CXXFLAGS='@CXX2B_CXXFLAGS@'} # Whether the compiler supports POSIXLY_CORRECT defined. : ${C_COMPILER_POSIXLY_CORRECT='@C_COMPILER_POSIXLY_CORRECT@'} diff --git a/tests/local.at b/tests/local.at index 3cf4a49e..39c9dbcd 100644 --- a/tests/local.at +++ b/tests/local.at @@ -881,7 +881,8 @@ for at_std in '' \ ${CXX11_CXXFLAGS:+"$CXX11_CXXFLAGS"} \ ${CXX14_CXXFLAGS:+"$CXX14_CXXFLAGS"} \ ${CXX17_CXXFLAGS:+"$CXX17_CXXFLAGS"} \ - ${CXX2A_CXXFLAGS:+"$CXX2A_CXXFLAGS"} + ${CXX20_CXXFLAGS:+"$CXX20_CXXFLAGS"} \ + ${CXX2B_CXXFLAGS:+"$CXX2B_CXXFLAGS"} do ]AS_ECHO(["======== Testing with C++ standard flags: '$at_cxx_std'"])[ CXXFLAGS="$at_for_each_std_CXXFLAGS_save $at_std" @@ -1510,7 +1511,8 @@ m4_define([AT_REQUIRE_CXX_STD], [11], [201103], [14], [201402], [17], [201703], - [2a], [201709], + [20], [202002], + [2b], [202100], [m4_fatal([$0: invalid arguments: $@])])[ return 1; #else |