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

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

Issue 612753004: Create MSan config for Chromium recipe module + add WebRTC MSan recipe. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/build
Patch Set: Created 6 years, 2 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
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 315 matching lines...) Expand 10 before | Expand all | Expand 10 after
326 if c.TARGET_PLATFORM == 'linux': 326 if c.TARGET_PLATFORM == 'linux':
327 c.gyp_env.GYP_DEFINES['use_allocator'] = 'none' 327 c.gyp_env.GYP_DEFINES['use_allocator'] = 'none'
328 328
329 c.gyp_env.GYP_DEFINES['asan'] = 1 329 c.gyp_env.GYP_DEFINES['asan'] = 1
330 c.gyp_env.GYP_DEFINES['lsan'] = 1 330 c.gyp_env.GYP_DEFINES['lsan'] = 1
331 331
332 @config_ctx() 332 @config_ctx()
333 def no_lsan(c): 333 def no_lsan(c):
334 c.gyp_env.GYP_DEFINES['lsan'] = 0 334 c.gyp_env.GYP_DEFINES['lsan'] = 0
335 335
336 @config_ctx()
337 def msan(c):
338 gyp_defs = c.gyp_env.GYP_DEFINES
339 gyp_defs['msan'] = 1
340 gyp_defs['msan_track_origins'] = 0
earthdok 2014/09/29 13:25:08 msan_track_origins=0 should not be a part of the c
kjellander_chromium 2014/09/30 10:56:40 That makes sense, I left that variable in the exis
341 gyp_defs['use_instrumented_libraries'] = 1
earthdok 2014/09/29 13:25:08 I'm also against adding instrumented libraries to
kjellander_chromium 2014/09/30 10:56:40 Fair enough. I added it as as separate config and
342 gyp_defs['instrumented_libraries_jobs'] = 10
343
336 @config_ctx(group='memory_tool') 344 @config_ctx(group='memory_tool')
337 def memcheck(c): 345 def memcheck(c):
338 _memory_tool(c, 'memcheck') 346 _memory_tool(c, 'memcheck')
339 c.gyp_env.GYP_DEFINES['build_for_tool'] = 'memcheck' 347 c.gyp_env.GYP_DEFINES['build_for_tool'] = 'memcheck'
340 348
341 @config_ctx(deps=['compiler'], group='memory_tool') 349 @config_ctx(deps=['compiler'], group='memory_tool')
342 def tsan2(c): 350 def tsan2(c):
343 if 'clang' not in c.compile_py.compiler: # pragma: no cover 351 if 'clang' not in c.compile_py.compiler: # pragma: no cover
344 raise BadConf('tsan2 requires clang') 352 raise BadConf('tsan2 requires clang')
345 gyp_defs = c.gyp_env.GYP_DEFINES 353 gyp_defs = c.gyp_env.GYP_DEFINES
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
393 def chromium(c): 401 def chromium(c):
394 c.compile_py.default_targets = ['All', 'chromium_builder_tests'] 402 c.compile_py.default_targets = ['All', 'chromium_builder_tests']
395 403
396 @config_ctx(includes=['ninja', 'clang', 'goma', 'asan']) 404 @config_ctx(includes=['ninja', 'clang', 'goma', 'asan'])
397 def chromium_asan(c): 405 def chromium_asan(c):
398 c.runtests.lsan_suppressions_file = Path('[CHECKOUT]', 'tools', 'lsan', 406 c.runtests.lsan_suppressions_file = Path('[CHECKOUT]', 'tools', 'lsan',
399 'suppressions.txt') 407 'suppressions.txt')
400 c.runtests.test_args.append('--test-launcher-batch-limit=1') 408 c.runtests.test_args.append('--test-launcher-batch-limit=1')
401 c.runtests.test_args.append('--test-launcher-print-test-stdio=always') 409 c.runtests.test_args.append('--test-launcher-print-test-stdio=always')
402 410
411 @config_ctx(includes=['ninja', 'clang', 'goma', 'msan'])
412 def chromium_msan(c):
413 c.compile_py.default_targets = ['All', 'chromium_builder_tests']
414
403 @config_ctx(includes=['ninja', 'clang', 'goma', 'syzyasan']) 415 @config_ctx(includes=['ninja', 'clang', 'goma', 'syzyasan'])
404 def chromium_syzyasan(c): 416 def chromium_syzyasan(c):
405 c.compile_py.default_targets = ['All', 'chromium_builder_tests'] 417 c.compile_py.default_targets = ['All', 'chromium_builder_tests']
406 418
407 @config_ctx(includes=['ninja', 'clang', 'goma', 'tsan2']) 419 @config_ctx(includes=['ninja', 'clang', 'goma', 'tsan2'])
408 def chromium_tsan2(c): 420 def chromium_tsan2(c):
409 c.compile_py.default_targets = ['All', 'chromium_builder_tests'] 421 c.compile_py.default_targets = ['All', 'chromium_builder_tests']
410 422
411 @config_ctx(includes=['ninja', 'default_compiler', 'goma', 'chromeos']) 423 @config_ctx(includes=['ninja', 'default_compiler', 'goma', 'chromeos'])
412 def chromium_chromeos(c): 424 def chromium_chromeos(c):
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after
534 c.gyp_env.GYP_DEFINES['v8_optimized_debug'] = 1 546 c.gyp_env.GYP_DEFINES['v8_optimized_debug'] = 1
535 547
536 @config_ctx() 548 @config_ctx()
537 def chromium_perf(c): 549 def chromium_perf(c):
538 c.compile_py.clobber = False 550 c.compile_py.clobber = False
539 if c.HOST_PLATFORM == 'win': 551 if c.HOST_PLATFORM == 'win':
540 c.compile_py.compiler = None 552 c.compile_py.compiler = None
541 c.compile_py.goma_dir = None 553 c.compile_py.goma_dir = None
542 c.gyp_env.GYP_DEFINES['use_goma'] = 0 554 c.gyp_env.GYP_DEFINES['use_goma'] = 0
543 555
OLDNEW
« no previous file with comments | « scripts/slave/recipe_modules/chromium/chromium_memory_fyi.py ('k') | scripts/slave/recipe_modules/chromium_tests/api.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698