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

Side by Side Diff: scripts/slave/recipe_modules/chromium/config.py

Issue 952653003: Change asan_coverage(deprecated) flag to sanitizer_coverage. Enable edge-level code coverage by def… (Closed) Base URL: https://chromium.googlesource.com/chromium/tools/build@master
Patch Set: Created 5 years, 10 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
OLDNEW
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 393 matching lines...) Expand 10 before | Expand all | Expand 10 after
404 404
405 # TODO(infra,earthdok,glider): Make this a gyp variable. This is also not a 405 # TODO(infra,earthdok,glider): Make this a gyp variable. This is also not a
406 # good name as only v8 builds release symbolized with -O2 while 406 # good name as only v8 builds release symbolized with -O2 while
407 # chromium.lkgr uses -O1. 407 # chromium.lkgr uses -O1.
408 @config_ctx() 408 @config_ctx()
409 def asan_symbolized(c): 409 def asan_symbolized(c):
410 c.gyp_env.GYP_DEFINES['release_extra_cflags'] = ( 410 c.gyp_env.GYP_DEFINES['release_extra_cflags'] = (
411 '-gline-tables-only -O2 -fno-inline-functions -fno-inline') 411 '-gline-tables-only -O2 -fno-inline-functions -fno-inline')
412 412
413 @config_ctx() 413 @config_ctx()
414 def asan_coverage(c): 414 def sanitizer_coverage(c):
415 c.gyp_env.GYP_DEFINES['asan_coverage'] = 1 415 c.gyp_env.GYP_DEFINES['sanitizer_coverage'] = 3
416 416
417 @config_ctx() 417 @config_ctx()
418 def no_lsan(c): 418 def no_lsan(c):
419 c.gyp_env.GYP_DEFINES['lsan'] = 0 419 c.gyp_env.GYP_DEFINES['lsan'] = 0
420 420
421 @config_ctx(deps=['compiler']) 421 @config_ctx(deps=['compiler'])
422 def msan(c): 422 def msan(c):
423 if 'clang' not in c.compile_py.compiler: # pragma: no cover 423 if 'clang' not in c.compile_py.compiler: # pragma: no cover
424 raise BadConf('msan requires clang') 424 raise BadConf('msan requires clang')
425 c.runtests.swarming_tags |= {'msan:1'} 425 c.runtests.swarming_tags |= {'msan:1'}
(...skipping 313 matching lines...) Expand 10 before | Expand all | Expand 10 after
739 def v8_verify_heap(c): 739 def v8_verify_heap(c):
740 c.gyp_env.GYP_DEFINES['v8_enable_verify_heap'] = 1 740 c.gyp_env.GYP_DEFINES['v8_enable_verify_heap'] = 1
741 741
742 @config_ctx() 742 @config_ctx()
743 def chromium_perf(c): 743 def chromium_perf(c):
744 c.compile_py.clobber = False 744 c.compile_py.clobber = False
745 745
746 @config_ctx() 746 @config_ctx()
747 def chromium_deterministic_build(c): 747 def chromium_deterministic_build(c):
748 c.gyp_env.GYP_DEFINES['dont_embed_build_metadata'] = 1 748 c.gyp_env.GYP_DEFINES['dont_embed_build_metadata'] = 1
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698