summaryrefslogtreecommitdiff
path: root/solenv
diff options
context:
space:
mode:
authorMike Kaganski <mike.kaganski@collabora.com>2021-05-31 14:11:54 +0200
committerMike Kaganski <mike.kaganski@collabora.com>2021-05-31 16:50:44 +0200
commit0f5eb62300255d60d144cdf5dfe90f754cca15ed (patch)
tree1c0f1b6cced5da0f6a03dbffc928dd729c0bd875 /solenv
parentcfca68e0f70f6b9fa54f32cc21585c073677229b (diff)
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@collabora.com>
Diffstat (limited to 'solenv')
-rw-r--r--solenv/gbuild/platform/com_MSC_defs.mk2
1 files changed, 2 insertions, 0 deletions
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)