solenv/gbuild/platform/com_MSC_defs.mk |    5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

New commits:
commit 0b663a28b47ef3bfff569034e5afcd9b0b1d0f00
Author:     Stephan Bergmann <sberg...@redhat.com>
AuthorDate: Fri Oct 27 11:31:28 2023 +0200
Commit:     Stephan Bergmann <sberg...@redhat.com>
CommitDate: Fri Oct 27 13:28:44 2023 +0200

    At least use the oldest available -std:c++14 for MSVC gb_CXX03FLAGS
    
    ...if we don't have a proper -std:c++03 available
    
    Change-Id: Iffef738be486b402a2b6af1a2761eb905ac4ddf2
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/158550
    Tested-by: Jenkins
    Reviewed-by: Stephan Bergmann <sberg...@redhat.com>

diff --git a/solenv/gbuild/platform/com_MSC_defs.mk 
b/solenv/gbuild/platform/com_MSC_defs.mk
index 0a3df54ce49c..2e7b2728de32 100644
--- a/solenv/gbuild/platform/com_MSC_defs.mk
+++ b/solenv/gbuild/platform/com_MSC_defs.mk
@@ -208,8 +208,9 @@ gb_STDLIBS := \
 gb_CFLAGS_WERROR = $(if $(ENABLE_WERROR),-WX)
 
 # there does not seem to be a way to force C++03 with MSVC, nor with clang-cl 
against MSVC system
-# headers
-gb_CXX03FLAGS :=
+# headers; the oldest version that MSVC supports is C++14, so use that as a 
rather imperfect
+# approximation:
+gb_CXX03FLAGS := -std:c++14
 
 gb_LinkTarget_EXCEPTIONFLAGS := \
        -EHs \

Reply via email to