[Libreoffice-commits] core.git: configure.ac external/libcmis

Libreoffice Gerrit user logerrit at kemper.freedesktop.org
Fri Nov 2 09:14:46 UTC 2018


 configure.ac                              |    2 +-
 external/libcmis/StaticLibrary_libcmis.mk |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

New commits:
commit cd472d1d8489f30797f47d3f6dafede28c1feb90
Author:     Stephan Bergmann <sbergman at redhat.com>
AuthorDate: Thu Nov 1 17:07:57 2018 +0100
Commit:     Stephan Bergmann <sbergman at redhat.com>
CommitDate: Fri Nov 2 10:14:19 2018 +0100

    Compile as C++2a, where available
    
    Change-Id: I6382be559a0c70d899d48d11e6f9b10ef270c9a4
    Reviewed-on: https://gerrit.libreoffice.org/62744
    Tested-by: Jenkins
    Reviewed-by: Stephan Bergmann <sbergman at redhat.com>

diff --git a/configure.ac b/configure.ac
index 4c1583ce0705..aeaaa709135d 100644
--- a/configure.ac
+++ b/configure.ac
@@ -6200,7 +6200,7 @@ elif test "$GCC" = "yes" -o "$COM_IS_CLANG" = TRUE; then
     printf 'foo\n' | $GPERF -L C++ > conftest.inc
     my_flags='-std=gnu++14 -std=gnu++1y -std=c++14 -std=c++1y -std=gnu++11 -std=gnu++0x -std=c++11 -std=c++0x'
     if test "$enable_c__17" != no; then
-        my_flags="-std=gnu++17 -std=gnu++1z -std=c++17 -std=c++1z $my_flags"
+        my_flags="-std=gnu++2a -std=c++2a -std=gnu++17 -std=gnu++1z -std=c++17 -std=c++1z $my_flags"
     fi
     for flag in $my_flags; do
         if test "$COM" = MSC; then
diff --git a/external/libcmis/StaticLibrary_libcmis.mk b/external/libcmis/StaticLibrary_libcmis.mk
index 652ece120a35..94bd7fbcac4a 100644
--- a/external/libcmis/StaticLibrary_libcmis.mk
+++ b/external/libcmis/StaticLibrary_libcmis.mk
@@ -17,7 +17,7 @@ ifeq ($(COM_IS_CLANG),TRUE)
 # Also avoid -Wdynamic-exception-spec errors in C++17 mode.
 $(eval $(call gb_StaticLibrary_add_cxxflags,libcmis,\
     -Wno-error=c++11-narrowing \
-    $(if $(filter -std=gnu++17 -std=gnu++1z -std=c++17 -std=c++1z, \
+    $(if $(filter -std=gnu++2a -std=c++2a -std=gnu++17 -std=gnu++1z -std=c++17 -std=c++1z, \
             $(CXXFLAGS_CXX11)), \
         -Wno-error=dynamic-exception-spec) \
 ))


More information about the Libreoffice-commits mailing list