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 import pipes | 5 import pipes |
6 | 6 |
7 from slave.recipe_config import config_item_context, ConfigGroup | 7 from slave.recipe_config import config_item_context, ConfigGroup |
8 from slave.recipe_config import Dict, List, Single, Static, Set, BadConf | 8 from slave.recipe_config import Dict, List, Single, Static, Set, BadConf |
9 from slave.recipe_config_types import Path | 9 from slave.recipe_config_types import Path |
10 | 10 |
(...skipping 435 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
446 c.gyp_env.GYP_DEFINES['build_for_tool'] = 'drmemory' | 446 c.gyp_env.GYP_DEFINES['build_for_tool'] = 'drmemory' |
447 | 447 |
448 def _memory_tool(c, tool): | 448 def _memory_tool(c, tool): |
449 if tool not in MEMORY_TOOLS: # pragma: no cover | 449 if tool not in MEMORY_TOOLS: # pragma: no cover |
450 raise BadConf('"%s" is not a supported memory tool, the supported ones ' | 450 raise BadConf('"%s" is not a supported memory tool, the supported ones ' |
451 'are: %s' % (tool, ','.join(MEMORY_TOOLS))) | 451 'are: %s' % (tool, ','.join(MEMORY_TOOLS))) |
452 c.runtests.memory_tool = tool | 452 c.runtests.memory_tool = tool |
453 | 453 |
454 @config_ctx() | 454 @config_ctx() |
455 def trybot_flavor(c): | 455 def trybot_flavor(c): |
456 fastbuild(c, optional=True) | 456 if not (c.TARGET_PLATFORM == 'mac' and |
457 c.gyp_env.GYP_DEFINES.get('asan', 0)): | |
Paweł Hajdan Jr.
2015/01/27 13:57:19
This is potentially fragile. Expectations show us
iannucci
2015/01/30 01:21:00
Configs are definitely allowed to introspect thems
Alexander Potapenko
2015/01/30 10:29:00
That's nice to know, thank you.
| |
458 fastbuild(c, optional=True) | |
457 dcheck(c, optional=True) | 459 dcheck(c, optional=True) |
458 | 460 |
459 @config_ctx() | 461 @config_ctx() |
460 def gn_component_build(c): | 462 def gn_component_build(c): |
461 c.gn_args.append('is_component_build=true') | 463 c.gn_args.append('is_component_build=true') |
462 | 464 |
463 @config_ctx() | 465 @config_ctx() |
464 def gn_minimal_symbols(c): | 466 def gn_minimal_symbols(c): |
465 c.gn_args.append('symbol_level=1') | 467 c.gn_args.append('symbol_level=1') |
466 | 468 |
(...skipping 219 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
686 def v8_verify_heap(c): | 688 def v8_verify_heap(c): |
687 c.gyp_env.GYP_DEFINES['v8_enable_verify_heap'] = 1 | 689 c.gyp_env.GYP_DEFINES['v8_enable_verify_heap'] = 1 |
688 | 690 |
689 @config_ctx() | 691 @config_ctx() |
690 def chromium_perf(c): | 692 def chromium_perf(c): |
691 c.compile_py.clobber = False | 693 c.compile_py.clobber = False |
692 | 694 |
693 @config_ctx() | 695 @config_ctx() |
694 def chromium_deterministic_build(c): | 696 def chromium_deterministic_build(c): |
695 c.gyp_env.GYP_DEFINES['dont_embed_build_metadata'] = 1 | 697 c.gyp_env.GYP_DEFINES['dont_embed_build_metadata'] = 1 |
OLD | NEW |