Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1078)

Side by Side Diff: test/win/compiler-flags/optimizations.gyp

Issue 10381032: ninja windows: fix mapping of optimization flags (Closed) Base URL: https://gyp.googlecode.com/svn/trunk
Patch Set: neither test, and reorder Created 8 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « pylib/gyp/msvs_emulation.py ('k') | test/win/gyptest-cl-optimizations.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright (c) 2012 Google Inc. All rights reserved. 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 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 { 5 {
6 'targets': [ 6 'targets': [
7 { 7 {
8 'target_name': 'test_opt_off', 8 'target_name': 'test_opt_off',
9 'type': 'executable', 9 'type': 'executable',
10 'msvs_settings': { 10 'msvs_settings': {
11 'VCCLCompilerTool': { 11 'VCCLCompilerTool': {
12 'Optimization': '0' 12 'Optimization': '0'
13 } 13 }
14 }, 14 },
15 'sources': ['hello.cc'], 15 'sources': ['hello.cc'],
16 }, 16 },
17 { 17 {
18 'target_name': 'test_opt_level_s', 18 'target_name': 'test_opt_lev_size',
19 'type': 'executable', 19 'type': 'executable',
20 'msvs_settings': { 20 'msvs_settings': {
21 'VCCLCompilerTool': { 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': {
22 'Optimization': '2' 32 'Optimization': '2'
23 } 33 }
24 }, 34 },
25 'sources': ['hello.cc'], 35 'sources': ['hello.cc'],
26 }, 36 },
27 { 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 {
28 'target_name': 'test_opt_unset', 48 'target_name': 'test_opt_unset',
29 'type': 'executable', 49 'type': 'executable',
30 'msvs_settings': { 50 'msvs_settings': {
31 'VCCLCompilerTool': { 51 'VCCLCompilerTool': {
32 } 52 }
33 }, 53 },
34 'sources': ['hello.cc'], 54 'sources': ['hello.cc'],
35 }, 55 },
36 { 56 {
37 'target_name': 'test_opt_fpo', 57 'target_name': 'test_opt_fpo',
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 'target_name': 'test_opt_inline_auto', 97 'target_name': 'test_opt_inline_auto',
78 'type': 'executable', 98 'type': 'executable',
79 'msvs_settings': { 99 'msvs_settings': {
80 'VCCLCompilerTool': { 100 'VCCLCompilerTool': {
81 'InlineFunctionExpansion': '2' 101 'InlineFunctionExpansion': '2'
82 } 102 }
83 }, 103 },
84 'sources': ['hello.cc'], 104 'sources': ['hello.cc'],
85 }, 105 },
86 { 106 {
87 'target_name': 'test_opt_size', 107 'target_name': 'test_opt_neither',
88 'type': 'executable', 108 'type': 'executable',
89 'msvs_settings': { 109 'msvs_settings': {
90 'VCCLCompilerTool': { 110 'VCCLCompilerTool': {
91 'FavorSizeOrSpeed': '1' 111 'FavorSizeOrSpeed': '0'
92 } 112 }
93 }, 113 },
94 'sources': ['hello.cc'], 114 'sources': ['hello.cc'],
95 }, 115 },
96 { 116 {
97 'target_name': 'test_opt_speed', 117 'target_name': 'test_opt_speed',
98 'type': 'executable', 118 'type': 'executable',
99 'msvs_settings': { 119 'msvs_settings': {
100 'VCCLCompilerTool': { 120 'VCCLCompilerTool': {
121 'FavorSizeOrSpeed': '1'
122 }
123 },
124 'sources': ['hello.cc'],
125 },
126 {
127 'target_name': 'test_opt_size',
128 'type': 'executable',
129 'msvs_settings': {
130 'VCCLCompilerTool': {
101 'FavorSizeOrSpeed': '2' 131 'FavorSizeOrSpeed': '2'
102 } 132 }
103 }, 133 },
104 'sources': ['hello.cc'], 134 'sources': ['hello.cc'],
105 }, 135 },
106 { 136 {
107 'target_name': 'test_opt_wpo', 137 'target_name': 'test_opt_wpo',
108 'type': 'executable', 138 'type': 'executable',
109 'msvs_settings': { 139 'msvs_settings': {
110 'VCCLCompilerTool': { 140 'VCCLCompilerTool': {
111 'WholeProgramOptimization': 'true' 141 'WholeProgramOptimization': 'true'
112 } 142 }
113 }, 143 },
114 'sources': ['hello.cc'], 144 'sources': ['hello.cc'],
115 }, 145 },
116 ] 146 ]
117 } 147 }
OLDNEW
« no previous file with comments | « pylib/gyp/msvs_emulation.py ('k') | test/win/gyptest-cl-optimizations.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698