summaryrefslogtreecommitdiffstats
path: root/build/internal
diff options
context:
space:
mode:
authorsiggi@chromium.org <siggi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-12-16 16:35:56 +0000
committersiggi@chromium.org <siggi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-12-16 16:35:56 +0000
commit28b479fffd214c75fb41a843aca5a99f3c40fca4 (patch)
treea3afcb293c1b06c30cc95a62c31a7266b6f8b57f /build/internal
parentcab5f36cc958dec24f4b89c09dc002829e0af986 (diff)
downloadchromium_src-28b479fffd214c75fb41a843aca5a99f3c40fca4.zip
chromium_src-28b479fffd214c75fb41a843aca5a99f3c40fca4.tar.gz
chromium_src-28b479fffd214c75fb41a843aca5a99f3c40fca4.tar.bz2
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
Diffstat (limited to 'build/internal')
-rw-r--r--build/internal/release_impl_official.gypi8
1 files changed, 7 insertions, 1 deletions
diff --git a/build/internal/release_impl_official.gypi b/build/internal/release_impl_official.gypi
index ee9df43..d62e955 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