diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2023-10-27 11:31:28 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2023-10-27 13:28:44 +0200 |
commit | 0b663a28b47ef3bfff569034e5afcd9b0b1d0f00 (patch) | |
tree | ca0016d11c405f50a76a8b1bb85151ebb4b791a4 /solenv/gbuild | |
parent | ae9c207675f1144fdea8f628f370375768f1eb00 (diff) |
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 <sbergman@redhat.com>
Diffstat (limited to 'solenv/gbuild')
-rw-r--r-- | solenv/gbuild/platform/com_MSC_defs.mk | 5 |
1 files changed, 3 insertions, 2 deletions
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 \ |