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

Side by Side Diff: build/common.gypi

Issue 11227052: More changes for TSan v2 support: (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 1 month 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
« no previous file with comments | « no previous file | tools/valgrind/tsan_v2/ignores.txt » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 # Copyright (c) 2012 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 # IMPORTANT: 5 # IMPORTANT:
6 # Please don't directly include this file if you are building via gyp_chromium, 6 # Please don't directly include this file if you are building via gyp_chromium,
7 # since gyp_chromium is automatically forcing its inclusion. 7 # since gyp_chromium is automatically forcing its inclusion.
8 { 8 {
9 # Variables expected to be overriden on the GYP command line (-D) or by 9 # Variables expected to be overriden on the GYP command line (-D) or by
10 # ~/.gyp/include.gypi. 10 # ~/.gyp/include.gypi.
(...skipping 234 matching lines...) Expand 10 before | Expand all | Expand 10 after
245 245
246 # Enable building with ASAN (Clang's -faddress-sanitizer option). 246 # Enable building with ASAN (Clang's -faddress-sanitizer option).
247 # -faddress-sanitizer only works with clang, but asan=1 implies clang=1 247 # -faddress-sanitizer only works with clang, but asan=1 implies clang=1
248 # See https://sites.google.com/a/chromium.org/dev/developers/testing/addre sssanitizer 248 # See https://sites.google.com/a/chromium.org/dev/developers/testing/addre sssanitizer
249 'asan%': 0, 249 'asan%': 0,
250 250
251 # Enable building with TSAN (Clang's -fthread-sanitizer option). 251 # Enable building with TSAN (Clang's -fthread-sanitizer option).
252 # -fthread-sanitizer only works with clang, but tsan=1 implies clang=1 252 # -fthread-sanitizer only works with clang, but tsan=1 implies clang=1
253 # See http://clang.llvm.org/docs/ThreadSanitizer.html 253 # See http://clang.llvm.org/docs/ThreadSanitizer.html
254 'tsan%': 0, 254 'tsan%': 0,
255 'tsan_blacklist%': '<(PRODUCT_DIR)/../../tools/valgrind/tsan_v2/ignores.tx t',
Nico 2012/10/31 19:19:38 (It's a bit confusing that "tsan" means "clang's t
Alexander Potapenko 2012/11/01 08:41:03 On the other hand, this is the first version from
255 256
256 # Use a modified version of Clang to intercept allocated types and sizes 257 # Use a modified version of Clang to intercept allocated types and sizes
257 # for allocated objects. clang_type_profiler=1 implies clang=1. 258 # for allocated objects. clang_type_profiler=1 implies clang=1.
258 # See http://dev.chromium.org/developers/deep-memory-profiler/cpp-object-t ype-identifier 259 # See http://dev.chromium.org/developers/deep-memory-profiler/cpp-object-t ype-identifier
259 # TODO(dmikurube): Support mac. See http://crbug.com/123758#c11 260 # TODO(dmikurube): Support mac. See http://crbug.com/123758#c11
260 'clang_type_profiler%': 0, 261 'clang_type_profiler%': 0,
261 262
262 # Set to true to instrument the code with function call logger. 263 # Set to true to instrument the code with function call logger.
263 # See src/third_party/cygprofile/cyg-profile.cc for details. 264 # See src/third_party/cygprofile/cyg-profile.cc for details.
264 'order_profiling%': 0, 265 'order_profiling%': 0,
(...skipping 359 matching lines...) Expand 10 before | Expand all | Expand 10 after
624 'enable_one_click_signin%': '<(enable_one_click_signin)', 625 'enable_one_click_signin%': '<(enable_one_click_signin)',
625 'enable_webrtc%': '<(enable_webrtc)', 626 'enable_webrtc%': '<(enable_webrtc)',
626 'chromium_win_pch%': '<(chromium_win_pch)', 627 'chromium_win_pch%': '<(chromium_win_pch)',
627 'configuration_policy%': '<(configuration_policy)', 628 'configuration_policy%': '<(configuration_policy)',
628 'safe_browsing%': '<(safe_browsing)', 629 'safe_browsing%': '<(safe_browsing)',
629 'input_speech%': '<(input_speech)', 630 'input_speech%': '<(input_speech)',
630 'notifications%': '<(notifications)', 631 'notifications%': '<(notifications)',
631 'clang_use_chrome_plugins%': '<(clang_use_chrome_plugins)', 632 'clang_use_chrome_plugins%': '<(clang_use_chrome_plugins)',
632 'asan%': '<(asan)', 633 'asan%': '<(asan)',
633 'tsan%': '<(tsan)', 634 'tsan%': '<(tsan)',
635 'tsan_blacklist%': '<(tsan_blacklist)',
634 'clang_type_profiler%': '<(clang_type_profiler)', 636 'clang_type_profiler%': '<(clang_type_profiler)',
635 'order_profiling%': '<(order_profiling)', 637 'order_profiling%': '<(order_profiling)',
636 'order_text_section%': '<(order_text_section)', 638 'order_text_section%': '<(order_text_section)',
637 'enable_extensions%': '<(enable_extensions)', 639 'enable_extensions%': '<(enable_extensions)',
638 'enable_web_intents%': '<(enable_web_intents)', 640 'enable_web_intents%': '<(enable_web_intents)',
639 'enable_web_intents_tag%': '<(enable_web_intents_tag)', 641 'enable_web_intents_tag%': '<(enable_web_intents_tag)',
640 'enable_plugin_installation%': '<(enable_plugin_installation)', 642 'enable_plugin_installation%': '<(enable_plugin_installation)',
641 'enable_protector_service%': '<(enable_protector_service)', 643 'enable_protector_service%': '<(enable_protector_service)',
642 'enable_session_service%': '<(enable_session_service)', 644 'enable_session_service%': '<(enable_session_service)',
643 'enable_themes%': '<(enable_themes)', 645 'enable_themes%': '<(enable_themes)',
(...skipping 1466 matching lines...) Expand 10 before | Expand all | Expand 10 after
2110 # 5%) but does not otherwise alter the output binary. This 2112 # 5%) but does not otherwise alter the output binary. This
2111 # information is used by the Syzygy optimization tool when 2113 # information is used by the Syzygy optimization tool when
2112 # decomposing the release image. 2114 # decomposing the release image.
2113 'Profile': 'true', 2115 'Profile': 'true',
2114 }, 2116 },
2115 }, 2117 },
2116 'conditions': [ 2118 'conditions': [
2117 ['msvs_use_common_release', { 2119 ['msvs_use_common_release', {
2118 'includes': ['release.gypi'], 2120 'includes': ['release.gypi'],
2119 }], 2121 }],
2120 ['release_valgrind_build==0', { 2122 ['release_valgrind_build==0 and tsan==0', {
2121 'defines': [ 2123 'defines': [
2122 'NVALGRIND', 2124 'NVALGRIND',
2123 'DYNAMIC_ANNOTATIONS_ENABLED=0', 2125 'DYNAMIC_ANNOTATIONS_ENABLED=0',
2124 ], 2126 ],
2125 }, { 2127 }, {
2126 'defines': [ 2128 'defines': [
2127 'DYNAMIC_ANNOTATIONS_ENABLED=1', 2129 'DYNAMIC_ANNOTATIONS_ENABLED=1',
2128 'WTF_USE_DYNAMIC_ANNOTATIONS=1', 2130 'WTF_USE_DYNAMIC_ANNOTATIONS=1',
2129 ], 2131 ],
2130 }], 2132 }],
(...skipping 441 matching lines...) Expand 10 before | Expand all | Expand 10 after
2572 }], 2574 }],
2573 ], 2575 ],
2574 }], 2576 }],
2575 ['tsan==1', { 2577 ['tsan==1', {
2576 'target_conditions': [ 2578 'target_conditions': [
2577 ['_toolset=="target"', { 2579 ['_toolset=="target"', {
2578 'cflags': [ 2580 'cflags': [
2579 '-fthread-sanitizer', 2581 '-fthread-sanitizer',
2580 '-fno-omit-frame-pointer', 2582 '-fno-omit-frame-pointer',
2581 '-fPIE', 2583 '-fPIE',
2584 '-mllvm', '-tsan-blacklist=<(tsan_blacklist)'
2582 ], 2585 ],
2583 'ldflags': [ 2586 'ldflags': [
2584 '-fthread-sanitizer', 2587 '-fthread-sanitizer',
2585 ], 2588 ],
2586 'defines': [ 2589 'defines': [
2587 'THREAD_SANITIZER', 2590 'THREAD_SANITIZER',
2588 'DYNAMIC_ANNOTATIONS_EXTERNAL_IMPL=1', 2591 'DYNAMIC_ANNOTATIONS_EXTERNAL_IMPL=1',
2592 'WTF_USE_DYNAMIC_ANNOTATIONS_NOIMPL=1',
2589 ], 2593 ],
2590 'target_conditions': [ 2594 'target_conditions': [
2591 ['_type=="executable"', { 2595 ['_type=="executable"', {
2592 'ldflags': [ 2596 'ldflags': [
2593 '-pie', 2597 '-pie',
2594 ], 2598 ],
2595 }], 2599 }],
2596 ], 2600 ],
2597 }], 2601 }],
2598 ], 2602 ],
(...skipping 1072 matching lines...) Expand 10 before | Expand all | Expand 10 after
3671 # settings in target dicts. SYMROOT is a special case, because many other 3675 # settings in target dicts. SYMROOT is a special case, because many other
3672 # Xcode variables depend on it, including variables such as 3676 # Xcode variables depend on it, including variables such as
3673 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something 3677 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something
3674 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the 3678 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the
3675 # files to appear (when present) in the UI as actual files and not red 3679 # files to appear (when present) in the UI as actual files and not red
3676 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, 3680 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR,
3677 # and therefore SYMROOT, needs to be set at the project level. 3681 # and therefore SYMROOT, needs to be set at the project level.
3678 'SYMROOT': '<(DEPTH)/xcodebuild', 3682 'SYMROOT': '<(DEPTH)/xcodebuild',
3679 }, 3683 },
3680 } 3684 }
OLDNEW
« no previous file with comments | « no previous file | tools/valgrind/tsan_v2/ignores.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698