summaryrefslogtreecommitdiff
path: root/deps/gyp/test/win/linker-flags/opt-icf.gyp
blob: effe8021c34273ee5dc21facbebf26bcfbcfc0b4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
# Copyright (c) 2012 Google Inc. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.

{
 'targets': [
    # Have to turn on function level linking here to get the function packaged
    # as a COMDAT so that it's eligible for merging. Also turn on debug
    # information so that the symbol names for the code appear in the dump.
    # Finally, specify non-incremental linking so that there's not a bunch of
    # extra "similar_function"s in the output (the ILT jump table).
    {
      'target_name': 'test_opticf_default',
      'type': 'executable',
      'msvs_settings': {
        'VCCLCompilerTool': {
          'EnableFunctionLevelLinking': 'true',
          'DebugInformationFormat': '3',
          'Optimization': '0',
        },
        'VCLinkerTool': {
          'GenerateDebugInformation': 'true',
          'LinkIncremental': '1',
        },
      },
      'sources': ['opt-icf.cc'],
    },
    {
      'target_name': 'test_opticf_no',
      'type': 'executable',
      'msvs_settings': {
        'VCCLCompilerTool': {
          'EnableFunctionLevelLinking': 'true',
          'DebugInformationFormat': '3',
          'Optimization': '0',
        },
        'VCLinkerTool': {
          'GenerateDebugInformation': 'true',
          'EnableCOMDATFolding': '1',
          'LinkIncremental': '1',
        },
      },
      'sources': ['opt-icf.cc'],
    },
    {
      'target_name': 'test_opticf_yes',
      'type': 'executable',
      'msvs_settings': {
        'VCCLCompilerTool': {
          'EnableFunctionLevelLinking': 'true',
          'DebugInformationFormat': '3',
          'Optimization': '0',
        },
        'VCLinkerTool': {
          'GenerateDebugInformation': 'true',
          'EnableCOMDATFolding': '2',
          'LinkIncremental': '1',
        },
      },
      'sources': ['opt-icf.cc'],
    },
  ]
}