From 28b479fffd214c75fb41a843aca5a99f3c40fca4 Mon Sep 17 00:00:00 2001 From: "siggi@chromium.org" Date: Fri, 16 Dec 2011 16:35:56 +0000 Subject: [PATCH] Tell the linker in advance to expect a large output size. This may reduce memory fragmentation, which may eke out a few more weeks of time on our official builds. Also turn down linker log verbosity. R=maruel@chromium.org BUG=None TEST=Official Windows build doesn't fail with linker OOM. Review URL: http://codereview.chromium.org/8963016 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@114808 0039d316-1c4b-4281-b951-d872f2087c98 --- build/internal/release_impl_official.gypi | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/build/internal/release_impl_official.gypi b/build/internal/release_impl_official.gypi index ee9df43c9053..d62e955250c8 100644 --- a/build/internal/release_impl_official.gypi +++ b/build/internal/release_impl_official.gypi @@ -18,7 +18,13 @@ # Get more debug spew from the linker while we're sorting out # build problems and performance. # TODO(siggi): Remove these flags after we're out of the woods. - 'AdditionalOptions': ['/verbose', '/time'], + 'AdditionalOptions': [ + '/time', + # This may reduce memory fragmentation during linking. + # The expected size is 40*1024*1024, which gives us about 10M of + # headroom as of Dec 16, 2011. + '/expectedoutputsize:41943040', + ], 'LinkTimeCodeGeneration': '1', # The /PROFILE flag causes the linker to add a "FIXUP" debug stream to # the generated PDB. According to MSDN documentation, this flag is only -- 2.11.4.GIT