• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (c) 2011 The Chromium Authors. All rights reserved.
2# Use of this source code is governed by a BSD-style license that can be
3# found in the LICENSE file.
4{
5  'includes': ['release_defaults.gypi'],
6  'defines': ['OFFICIAL_BUILD'],
7  'msvs_settings': {
8    'VCCLCompilerTool': {
9      'InlineFunctionExpansion': '2',
10      'EnableIntrinsicFunctions': 'true',
11      'OmitFramePointers': 'false',
12      # The above is not sufficient (http://crbug.com/106711): it
13      # simply eliminates an explicit "/Oy", but both /O2 and /Ox
14      # perform FPO regardless, so we must explicitly disable.
15      # We still want the false setting above to avoid having
16      # "/Oy /Oy-" and warnings about overriding.
17      'AdditionalOptions': ['/Oy-'],
18    },
19    'VCLibrarianTool': {
20      'AdditionalOptions': [
21        '/ltcg',
22        '/expectedoutputsize:120000000'
23      ],
24    },
25    'VCLinkerTool': {
26      'AdditionalOptions': [
27        '/time',
28        # This may reduce memory fragmentation during linking.
29        # The expected size is 40*1024*1024, which gives us about 10M of
30        # headroom as of Dec 16, 2011.
31        '/expectedoutputsize:41943040',
32      ],
33      # The /PROFILE flag causes the linker to add a "FIXUP" debug stream to
34      # the generated PDB. According to MSDN documentation, this flag is only
35      # available (or perhaps supported) in the Enterprise (team development)
36      # version of Visual Studio. If this blocks your official build, simply
37      # comment out this line, then  re-run "gclient runhooks".
38      'Profile': 'true',
39    },
40  },
41}
42