Home | History | Annotate | Download | only in compiler-flags
      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     {
      8       'target_name': 'test_opt_off',
      9       'type': 'executable',
     10       'msvs_settings': {
     11         'VCCLCompilerTool': {
     12           'Optimization': '0'
     13         }
     14       },
     15       'sources': ['hello.cc'],
     16     },
     17     {
     18       'target_name': 'test_opt_lev_size',
     19       'type': 'executable',
     20       'msvs_settings': {
     21         'VCCLCompilerTool': {
     22           'Optimization': '1'
     23         }
     24       },
     25       'sources': ['hello.cc'],
     26     },
     27     {
     28       'target_name': 'test_opt_lev_speed',
     29       'type': 'executable',
     30       'msvs_settings': {
     31         'VCCLCompilerTool': {
     32           'Optimization': '2'
     33         }
     34       },
     35       'sources': ['hello.cc'],
     36     },
     37     {
     38       'target_name': 'test_opt_lev_max',
     39       'type': 'executable',
     40       'msvs_settings': {
     41         'VCCLCompilerTool': {
     42           'Optimization': '3'
     43         }
     44       },
     45       'sources': ['hello.cc'],
     46     },
     47     {
     48       'target_name': 'test_opt_unset',
     49       'type': 'executable',
     50       'msvs_settings': {
     51         'VCCLCompilerTool': {
     52         }
     53       },
     54       'sources': ['hello.cc'],
     55     },
     56     {
     57       'target_name': 'test_opt_fpo',
     58       'type': 'executable',
     59       'msvs_settings': {
     60         'VCCLCompilerTool': {
     61           'OmitFramePointers': 'true'
     62         }
     63       },
     64       'sources': ['hello.cc'],
     65     },
     66     {
     67       'target_name': 'test_opt_fpo_off',
     68       'type': 'executable',
     69       'msvs_settings': {
     70         'VCCLCompilerTool': {
     71           'OmitFramePointers': 'false'
     72         }
     73       },
     74       'sources': ['hello.cc'],
     75     },
     76     {
     77       'target_name': 'test_opt_intrinsic',
     78       'type': 'executable',
     79       'msvs_settings': {
     80         'VCCLCompilerTool': {
     81           'EnableIntrinsicFunctions': 'true'
     82         }
     83       },
     84       'sources': ['hello.cc'],
     85     },
     86     {
     87       'target_name': 'test_opt_intrinsic_off',
     88       'type': 'executable',
     89       'msvs_settings': {
     90         'VCCLCompilerTool': {
     91           'EnableIntrinsicFunctions': 'false'
     92         }
     93       },
     94       'sources': ['hello.cc'],
     95     },
     96     {
     97       'target_name': 'test_opt_inline_off',
     98       'type': 'executable',
     99       'msvs_settings': {
    100         'VCCLCompilerTool': {
    101           'InlineFunctionExpansion': '0'
    102         }
    103       },
    104       'sources': ['hello.cc'],
    105     },
    106     {
    107       'target_name': 'test_opt_inline_manual',
    108       'type': 'executable',
    109       'msvs_settings': {
    110         'VCCLCompilerTool': {
    111           'InlineFunctionExpansion': '1'
    112         }
    113       },
    114       'sources': ['hello.cc'],
    115     },
    116     {
    117       'target_name': 'test_opt_inline_auto',
    118       'type': 'executable',
    119       'msvs_settings': {
    120         'VCCLCompilerTool': {
    121           'InlineFunctionExpansion': '2'
    122         }
    123       },
    124       'sources': ['hello.cc'],
    125     },
    126     {
    127       'target_name': 'test_opt_neither',
    128       'type': 'executable',
    129       'msvs_settings': {
    130         'VCCLCompilerTool': {
    131           'FavorSizeOrSpeed': '0'
    132         }
    133       },
    134       'sources': ['hello.cc'],
    135     },
    136     {
    137       'target_name': 'test_opt_speed',
    138       'type': 'executable',
    139       'msvs_settings': {
    140         'VCCLCompilerTool': {
    141           'FavorSizeOrSpeed': '1'
    142         }
    143       },
    144       'sources': ['hello.cc'],
    145     },
    146     {
    147       'target_name': 'test_opt_size',
    148       'type': 'executable',
    149       'msvs_settings': {
    150         'VCCLCompilerTool': {
    151           'FavorSizeOrSpeed': '2'
    152         }
    153       },
    154       'sources': ['hello.cc'],
    155     },
    156     {
    157       'target_name': 'test_opt_wpo',
    158       'type': 'executable',
    159       'msvs_settings': {
    160         'VCCLCompilerTool': {
    161           'WholeProgramOptimization': 'true'
    162         }
    163       },
    164       'sources': ['hello.cc'],
    165     },
    166     {
    167       'target_name': 'test_opt_sp',
    168       'type': 'executable',
    169       'msvs_settings': {
    170         'VCCLCompilerTool': {
    171           'StringPooling': 'true'
    172         }
    173       },
    174       'sources': ['hello.cc'],
    175     },
    176     {
    177       'target_name': 'test_opt_sp_off',
    178       'type': 'executable',
    179       'msvs_settings': {
    180         'VCCLCompilerTool': {
    181           'StringPooling': 'false'
    182         }
    183       },
    184       'sources': ['hello.cc'],
    185     },
    186     {
    187       'target_name': 'test_opt_fso',
    188       'type': 'executable',
    189       'msvs_settings': {
    190         'VCCLCompilerTool': {
    191           'EnableFiberSafeOptimizations': 'true'
    192         }
    193       },
    194       'sources': ['hello.cc'],
    195     },
    196     {
    197       'target_name': 'test_opt_fso_off',
    198       'type': 'executable',
    199       'msvs_settings': {
    200         'VCCLCompilerTool': {
    201           'EnableFiberSafeOptimizations': 'false'
    202         }
    203       },
    204       'sources': ['hello.cc'],
    205     },
    206   ]
    207 }
    208