1# Copyright (c) 2012 Google Inc. 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{ 6 'targets': [ 7 # Have to turn on function level linking here to get the function packaged 8 # as a COMDAT so that it's eligible for merging. Also turn on debug 9 # information so that the symbol names for the code appear in the dump. 10 # Finally, specify non-incremental linking so that there's not a bunch of 11 # extra "similar_function"s in the output (the ILT jump table). 12 { 13 'target_name': 'test_opticf_default', 14 'type': 'executable', 15 'msvs_settings': { 16 'VCCLCompilerTool': { 17 'EnableFunctionLevelLinking': 'true', 18 'DebugInformationFormat': '3', 19 'Optimization': '0', 20 }, 21 'VCLinkerTool': { 22 'GenerateDebugInformation': 'true', 23 'LinkIncremental': '1', 24 }, 25 }, 26 'sources': ['opt-icf.cc'], 27 }, 28 { 29 'target_name': 'test_opticf_no', 30 'type': 'executable', 31 'msvs_settings': { 32 'VCCLCompilerTool': { 33 'EnableFunctionLevelLinking': 'true', 34 'DebugInformationFormat': '3', 35 'Optimization': '0', 36 }, 37 'VCLinkerTool': { 38 'GenerateDebugInformation': 'true', 39 'EnableCOMDATFolding': '1', 40 'LinkIncremental': '1', 41 }, 42 }, 43 'sources': ['opt-icf.cc'], 44 }, 45 { 46 'target_name': 'test_opticf_yes', 47 'type': 'executable', 48 'msvs_settings': { 49 'VCCLCompilerTool': { 50 'EnableFunctionLevelLinking': 'true', 51 'DebugInformationFormat': '3', 52 'Optimization': '0', 53 }, 54 'VCLinkerTool': { 55 'GenerateDebugInformation': 'true', 56 'EnableCOMDATFolding': '2', 57 'LinkIncremental': '1', 58 }, 59 }, 60 'sources': ['opt-icf.cc'], 61 }, 62 ] 63} 64