| Index: test/win/compiler_flags/optimizations.gyp
|
| diff --git a/test/win/compiler_flags/optimizations.gyp b/test/win/compiler_flags/optimizations.gyp
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..49d87f4115bc0c68bfb70e5f0408add797025db4
|
| --- /dev/null
|
| +++ b/test/win/compiler_flags/optimizations.gyp
|
| @@ -0,0 +1,150 @@
|
| +# 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': [
|
| + {
|
| + 'target_name': 'test_opt_off',
|
| + 'product_name': 'test_opt_off',
|
| + 'type': 'executable',
|
| + 'msvs_settings': {
|
| + 'VCCLCompilerTool': {
|
| + 'Optimization': '0'
|
| + }
|
| + },
|
| + 'sources': [
|
| + 'hello.cc'
|
| + ]
|
| + },
|
| + {
|
| + 'target_name': 'test_opt_level_s',
|
| + 'product_name': 'test_opt_level_s',
|
| + 'type': 'executable',
|
| + 'msvs_settings': {
|
| + 'VCCLCompilerTool': {
|
| + 'Optimization': '2'
|
| + }
|
| + },
|
| + 'sources': [
|
| + 'hello.cc'
|
| + ]
|
| + },
|
| + {
|
| + 'target_name': 'test_opt_unset',
|
| + 'product_name': 'test_opt_unset',
|
| + 'type': 'executable',
|
| + 'msvs_settings': {
|
| + 'VCCLCompilerTool': {
|
| + }
|
| + },
|
| + 'sources': [
|
| + 'hello.cc'
|
| + ]
|
| + },
|
| + {
|
| + 'target_name': 'test_opt_fpo',
|
| + 'product_name': 'test_opt_fpo',
|
| + 'type': 'executable',
|
| + 'msvs_settings': {
|
| + 'VCCLCompilerTool': {
|
| + 'OmitFramePointers': 'true'
|
| + }
|
| + },
|
| + 'sources': [
|
| + 'hello.cc'
|
| + ]
|
| + },
|
| + {
|
| + 'target_name': 'test_opt_fpo_off',
|
| + 'product_name': 'test_opt_fpo_off',
|
| + 'type': 'executable',
|
| + 'msvs_settings': {
|
| + 'VCCLCompilerTool': {
|
| + 'OmitFramePointers': 'false'
|
| + }
|
| + },
|
| + 'sources': [
|
| + 'hello.cc'
|
| + ]
|
| + },
|
| + {
|
| + 'target_name': 'test_opt_inline_off',
|
| + 'product_name': 'test_opt_inline_off',
|
| + 'type': 'executable',
|
| + 'msvs_settings': {
|
| + 'VCCLCompilerTool': {
|
| + 'InlineFunctionExpansion': '0'
|
| + }
|
| + },
|
| + 'sources': [
|
| + 'hello.cc'
|
| + ]
|
| + },
|
| + {
|
| + 'target_name': 'test_opt_inline_manual',
|
| + 'product_name': 'test_opt_inline_manual',
|
| + 'type': 'executable',
|
| + 'msvs_settings': {
|
| + 'VCCLCompilerTool': {
|
| + 'InlineFunctionExpansion': '1'
|
| + }
|
| + },
|
| + 'sources': [
|
| + 'hello.cc'
|
| + ]
|
| + },
|
| + {
|
| + 'target_name': 'test_opt_inline_auto',
|
| + 'product_name': 'test_opt_inline_auto',
|
| + 'type': 'executable',
|
| + 'msvs_settings': {
|
| + 'VCCLCompilerTool': {
|
| + 'InlineFunctionExpansion': '2'
|
| + }
|
| + },
|
| + 'sources': [
|
| + 'hello.cc'
|
| + ]
|
| + },
|
| + {
|
| + 'target_name': 'test_opt_size',
|
| + 'product_name': 'test_opt_size',
|
| + 'type': 'executable',
|
| + 'msvs_settings': {
|
| + 'VCCLCompilerTool': {
|
| + 'FavorSizeOrSpeed': '1'
|
| + }
|
| + },
|
| + 'sources': [
|
| + 'hello.cc'
|
| + ]
|
| + },
|
| + {
|
| + 'target_name': 'test_opt_speed',
|
| + 'product_name': 'test_opt_speed',
|
| + 'type': 'executable',
|
| + 'msvs_settings': {
|
| + 'VCCLCompilerTool': {
|
| + 'FavorSizeOrSpeed': '2'
|
| + }
|
| + },
|
| + 'sources': [
|
| + 'hello.cc'
|
| + ]
|
| + },
|
| + {
|
| + 'target_name': 'test_opt_wpo',
|
| + 'product_name': 'test_opt_wpo',
|
| + 'type': 'executable',
|
| + 'msvs_settings': {
|
| + 'VCCLCompilerTool': {
|
| + 'WholeProgramOptimization': 'true'
|
| + }
|
| + },
|
| + 'sources': [
|
| + 'hello.cc'
|
| + ]
|
| + },
|
| + ]
|
| +}
|
|
|