[Libreoffice-commits] core.git: configure.ac

Stephan Bergmann (via logerrit) logerrit at kemper.freedesktop.org
Wed Feb 26 07:41:29 UTC 2020


 configure.ac |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 92df944f54696012963415111a706fca438e703b
Author:     Stephan Bergmann <sbergman at redhat.com>
AuthorDate: Tue Feb 25 16:25:24 2020 +0100
Commit:     Stephan Bergmann <sbergman at redhat.com>
CommitDate: Wed Feb 26 08:40:54 2020 +0100

    Detect -std=c++20
    
    at least Clang trunk accepts it now since <https://github.com/llvm/llvm-project/
    commit/24ad121582454e625bdad125c90d9ac0dae948c8> "Add -std=c++20 flag, replace
    C++2a with C++20 throughout the Clang"
    
    Change-Id: I389bb2e79acbbdf2622dc7c839a3164836c40415
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/89464
    Tested-by: Jenkins
    Reviewed-by: Stephan Bergmann <sbergman at redhat.com>

diff --git a/configure.ac b/configure.ac
index 973866050a4e..c9d75b19ecf2 100644
--- a/configure.ac
+++ b/configure.ac
@@ -6563,7 +6563,7 @@ CXXFLAGS_CXX11=
 if test "$COM" = MSC -a "$COM_IS_CLANG" != TRUE; then
     CXXFLAGS_CXX11='-std:c++17 -Zc:__cplusplus'
 elif test "$GCC" = "yes" -o "$COM_IS_CLANG" = TRUE; then
-    my_flags='-std=c++2a -std=c++17 -std=c++1z'
+    my_flags='-std=c++20 -std=c++2a -std=c++17 -std=c++1z'
     for flag in $my_flags; do
         if test "$COM" = MSC; then
             flag="-Xclang $flag"


More information about the Libreoffice-commits mailing list