summaryrefslogtreecommitdiff
path: root/solenv
diff options
context:
space:
mode:
authorDavid Ostrovsky <david@ostrovsky.org>2017-01-28 11:37:10 +0100
committerDavid Ostrovsky <david@ostrovsky.org>2017-03-03 09:02:58 +0000
commit96af392ba495383927dc886f13a1f5a5cc46d9c1 (patch)
treeafd84c070e9933589f25c6d3a732ced1a879921d /solenv
parent1d4f1eae902fa115b1d7ef818a75dcdcdb9c8a65 (diff)
Use /debug:fastlink linker option to improve link performance
/debug:fastlink improve build performance and reduce resources consumption. When this linker oprion is used the linker-produced program database (PDB) files doesn’t have any private symbol information. Debug information is distributed among input object and library files, and the linker PDB just serves as an indexing database. Obviously, this provides a huge performance benefit for the daily developer builds. fastlink PDB files cannot be shared with another developer on the team or uploaded directly to symbol server. There is spcial tooling which is able to create a full PDB from the /debug:fastlink PDB on demand: mspdbcmf: [1]. The integration of mspdbcmf is beyond the scope of this change. [1] https://blogs.msdn.microsoft.com/vcblog/2016/10/05/faster-c-build-cycle-in-vs-15-with-debugfastlink/ Change-Id: I14e29cf116407b420598f692c8d6d851e686268b Reviewed-on: https://gerrit.libreoffice.org/34330 Reviewed-by: David Ostrovsky <david@ostrovsky.org> Tested-by: David Ostrovsky <david@ostrovsky.org>
Diffstat (limited to 'solenv')
-rwxr-xr-xsolenv/gbuild/platform/com_MSC_defs.mk1
1 files changed, 1 insertions, 0 deletions
diff --git a/solenv/gbuild/platform/com_MSC_defs.mk b/solenv/gbuild/platform/com_MSC_defs.mk
index a6b1b32d8c3d..f9b077ddfe9c 100755
--- a/solenv/gbuild/platform/com_MSC_defs.mk
+++ b/solenv/gbuild/platform/com_MSC_defs.mk
@@ -250,6 +250,7 @@ gb_LinkTarget_LDFLAGS += \
gb_DEBUGINFO_FLAGS := \
-FS \
-Zi \
+ -DEBUG:fastlink \
gb_DEBUG_CFLAGS :=