[Libreoffice-commits] core.git: solenv/gbuild

Mike Kaganski (via logerrit) logerrit at kemper.freedesktop.org
Mon May 31 14:51:20 UTC 2021


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

New commits:
commit 0f5eb62300255d60d144cdf5dfe90f754cca15ed
Author:     Mike Kaganski <mike.kaganski at collabora.com>
AuthorDate: Mon May 31 14:11:54 2021 +0200
Commit:     Mike Kaganski <mike.kaganski at collabora.com>
CommitDate: Mon May 31 16:50:44 2021 +0200

    Enable -bigobj on MSVC
    
    This fixes this error:
    
      C:\lo\src\core\sc\qa\unit\ucalc_copypaste.cxx : fatal error C1128: number of sections exceeded object file format limit: compile with /bigobj
    
    According to [1], it is enabled by default in all UWP projects, which
    presumably means there's no harm in enabling it (other than some
    compiling overhead, which impact is unclear at the moment).
    
    Enabling it unconditionally, it would not create a mismatch like in
    7788e87ce25183c1d6f92a3b972b8dd8c88e58e3.
    
    [1] https://docs.microsoft.com/en-us/cpp/build/reference/bigobj-increase-number-of-sections-in-dot-obj-file
    
    Change-Id: Id176add21fec2a6084149e9ff23bdafb10b3d579
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/116454
    Tested-by: Jenkins
    Reviewed-by: Mike Kaganski <mike.kaganski at collabora.com>

diff --git a/solenv/gbuild/platform/com_MSC_defs.mk b/solenv/gbuild/platform/com_MSC_defs.mk
index 2737cfa26af9..1fa6d87bdd29 100644
--- a/solenv/gbuild/platform/com_MSC_defs.mk
+++ b/solenv/gbuild/platform/com_MSC_defs.mk
@@ -113,6 +113,7 @@ gb_CFLAGS := \
 	-W4 \
 	-wd4244 \
 	-wd4505 \
+	-bigobj \
 
 gb_CXXFLAGS_DISABLE_WARNINGS = -w
 
@@ -145,6 +146,7 @@ gb_CXXFLAGS := \
 	-wd4505 \
 	-wd4611 \
 	-wd4706 \
+	-bigobj \
 
 ifeq ($(CPUNAME),INTEL)
 


More information about the Libreoffice-commits mailing list