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

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: rebase with recipe_simulation_test.py 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 390 matching lines...) Expand 10 before | Expand all | Expand 10 after
401 401
402 # TODO(infra,earthdok,glider): Make this a gyp variable. This is also not a 402 # TODO(infra,earthdok,glider): Make this a gyp variable. This is also not a
403 # good name as only v8 builds release symbolized with -O2 while 403 # good name as only v8 builds release symbolized with -O2 while
404 # chromium.lkgr uses -O1. 404 # chromium.lkgr uses -O1.
405 @config_ctx() 405 @config_ctx()
406 def asan_symbolized(c): 406 def asan_symbolized(c):
407 c.gyp_env.GYP_DEFINES['release_extra_cflags'] = ( 407 c.gyp_env.GYP_DEFINES['release_extra_cflags'] = (
408 '-gline-tables-only -O2 -fno-inline-functions -fno-inline') 408 '-gline-tables-only -O2 -fno-inline-functions -fno-inline')
409 409
410 @config_ctx() 410 @config_ctx()
411 def asan_coverage(c): 411 def sanitizer_coverage(c):
412 c.gyp_env.GYP_DEFINES['asan_coverage'] = 1 412 c.gyp_env.GYP_DEFINES['sanitizer_coverage'] = 3
413 413
414 @config_ctx() 414 @config_ctx()
415 def no_lsan(c): 415 def no_lsan(c):
416 c.gyp_env.GYP_DEFINES['lsan'] = 0 416 c.gyp_env.GYP_DEFINES['lsan'] = 0
417 417
418 @config_ctx(deps=['compiler']) 418 @config_ctx(deps=['compiler'])
419 def msan(c): 419 def msan(c):
420 if 'clang' not in c.compile_py.compiler: # pragma: no cover 420 if 'clang' not in c.compile_py.compiler: # pragma: no cover
421 raise BadConf('msan requires clang') 421 raise BadConf('msan requires clang')
422 c.runtests.swarming_tags |= {'msan:1'} 422 c.runtests.swarming_tags |= {'msan:1'}
(...skipping 321 matching lines...) Expand 10 before | Expand all | Expand 10 after
744 def chromium_perf_fyi(c): 744 def chromium_perf_fyi(c):
745 c.compile_py.clobber = False 745 c.compile_py.clobber = False
746 if c.HOST_PLATFORM == 'win': 746 if c.HOST_PLATFORM == 'win':
747 c.compile_py.compiler = None 747 c.compile_py.compiler = None
748 c.compile_py.goma_dir = None 748 c.compile_py.goma_dir = None
749 c.gyp_env.GYP_DEFINES['use_goma'] = 0 749 c.gyp_env.GYP_DEFINES['use_goma'] = 0
750 750
751 @config_ctx() 751 @config_ctx()
752 def chromium_deterministic_build(c): 752 def chromium_deterministic_build(c):
753 c.gyp_env.GYP_DEFINES['dont_embed_build_metadata'] = 1 753 c.gyp_env.GYP_DEFINES['dont_embed_build_metadata'] = 1
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698