| OLD | NEW |
| 1 # Copyright 2013 The Chromium Authors. All rights reserved. | 1 # Copyright 2013 The Chromium Authors. 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 from recipe_engine.config import BadConf | 5 from recipe_engine.config import BadConf |
| 6 from recipe_engine.config_types import Path | 6 from recipe_engine.config_types import Path |
| 7 from recipe_engine import config as recipe_config | 7 from recipe_engine import config as recipe_config |
| 8 | 8 |
| 9 import DEPS | 9 import DEPS |
| 10 CONFIG_CTX = DEPS['chromium'].CONFIG_CTX | 10 CONFIG_CTX = DEPS['chromium'].CONFIG_CTX |
| (...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 185 | 185 |
| 186 @CONFIG_CTX(includes=['v8']) | 186 @CONFIG_CTX(includes=['v8']) |
| 187 def simulate_ppc(c): | 187 def simulate_ppc(c): |
| 188 if c.TARGET_BITS == 64: | 188 if c.TARGET_BITS == 64: |
| 189 c.gyp_env.GYP_DEFINES['v8_target_arch'] = 'ppc64' | 189 c.gyp_env.GYP_DEFINES['v8_target_arch'] = 'ppc64' |
| 190 else: | 190 else: |
| 191 c.gyp_env.GYP_DEFINES['v8_target_arch'] = 'ppc' | 191 c.gyp_env.GYP_DEFINES['v8_target_arch'] = 'ppc' |
| 192 | 192 |
| 193 | 193 |
| 194 @CONFIG_CTX(includes=['v8']) | 194 @CONFIG_CTX(includes=['v8']) |
| 195 def simulate_s390(c): |
| 196 if c.TARGET_BITS == 64: |
| 197 c.gyp_env.GYP_DEFINES['v8_target_arch'] = 's390x' |
| 198 else: |
| 199 c.gyp_env.GYP_DEFINES['v8_target_arch'] = 's390' |
| 200 |
| 201 |
| 202 @CONFIG_CTX(includes=['v8']) |
| 195 def verify_heap(c): | 203 def verify_heap(c): |
| 196 c.gyp_env.GYP_DEFINES['v8_enable_verify_heap'] = 1 | 204 c.gyp_env.GYP_DEFINES['v8_enable_verify_heap'] = 1 |
| 197 | 205 |
| 198 | 206 |
| 199 @CONFIG_CTX(includes=['v8']) | 207 @CONFIG_CTX(includes=['v8']) |
| 200 def vtunejit(c): | 208 def vtunejit(c): |
| 201 c.gyp_env.GYP_DEFINES['v8_enable_vtunejit'] = 1 | 209 c.gyp_env.GYP_DEFINES['v8_enable_vtunejit'] = 1 |
| 202 | 210 |
| 203 | 211 |
| 204 @CONFIG_CTX(includes=['v8']) | 212 @CONFIG_CTX(includes=['v8']) |
| 205 def x87(c): | 213 def x87(c): |
| 206 # TODO(machenbach): Chromium does not support x87 yet. With the current | 214 # TODO(machenbach): Chromium does not support x87 yet. With the current |
| 207 # configuration, target_arch can't be set through a parameter as ARCH=intel | 215 # configuration, target_arch can't be set through a parameter as ARCH=intel |
| 208 # and BITS=32 is ambigue with x87. | 216 # and BITS=32 is ambigue with x87. |
| 209 c.gyp_env.GYP_DEFINES['v8_target_arch'] = 'x87' | 217 c.gyp_env.GYP_DEFINES['v8_target_arch'] = 'x87' |
| OLD | NEW |