Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 291 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 302 # -fsanitize=thread only works with clang, but tsan=1 implies clang=1 | 302 # -fsanitize=thread only works with clang, but tsan=1 implies clang=1 |
| 303 # See http://clang.llvm.org/docs/ThreadSanitizer.html | 303 # See http://clang.llvm.org/docs/ThreadSanitizer.html |
| 304 'tsan%': 0, | 304 'tsan%': 0, |
| 305 'tsan_blacklist%': '<(PRODUCT_DIR)/../../tools/valgrind/tsan_v2/ignores.tx t', | 305 'tsan_blacklist%': '<(PRODUCT_DIR)/../../tools/valgrind/tsan_v2/ignores.tx t', |
| 306 | 306 |
| 307 # Enable building with MSAN (Clang's -fsanitize=memory option). | 307 # Enable building with MSAN (Clang's -fsanitize=memory option). |
| 308 # MemorySanitizer only works with clang, but msan=1 implies clang=1 | 308 # MemorySanitizer only works with clang, but msan=1 implies clang=1 |
| 309 # See http://clang.llvm.org/docs/MemorySanitizer.html | 309 # See http://clang.llvm.org/docs/MemorySanitizer.html |
| 310 'msan%': 0, | 310 'msan%': 0, |
| 311 | 311 |
| 312 # Enable use pre-built instrumented system libs by sanitizer instead of st andard libs | |
|
Alexander Potapenko
2013/10/29 13:36:11
Please make sure you stay below the 80-column limi
Alexander Potapenko
2013/10/29 13:36:11
How about "Use the libraries instrumented by one o
alextaran1
2013/10/30 11:16:29
Thanks, that's much better
alextaran1
2013/10/30 11:16:29
There are too many lines in common.gypi which have
| |
| 313 'use_instrumented_libraries%': 0, | |
| 314 | |
| 312 # Use a modified version of Clang to intercept allocated types and sizes | 315 # Use a modified version of Clang to intercept allocated types and sizes |
| 313 # for allocated objects. clang_type_profiler=1 implies clang=1. | 316 # for allocated objects. clang_type_profiler=1 implies clang=1. |
| 314 # See http://dev.chromium.org/developers/deep-memory-profiler/cpp-object-t ype-identifier | 317 # See http://dev.chromium.org/developers/deep-memory-profiler/cpp-object-t ype-identifier |
| 315 # TODO(dmikurube): Support mac. See http://crbug.com/123758#c11 | 318 # TODO(dmikurube): Support mac. See http://crbug.com/123758#c11 |
| 316 'clang_type_profiler%': 0, | 319 'clang_type_profiler%': 0, |
| 317 | 320 |
| 318 # Set to true to instrument the code with function call logger. | 321 # Set to true to instrument the code with function call logger. |
| 319 # See src/third_party/cygprofile/cyg-profile.cc for details. | 322 # See src/third_party/cygprofile/cyg-profile.cc for details. |
| 320 'order_profiling%': 0, | 323 'order_profiling%': 0, |
| 321 | 324 |
| (...skipping 511 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 833 'safe_browsing%': '<(safe_browsing)', | 836 'safe_browsing%': '<(safe_browsing)', |
| 834 'input_speech%': '<(input_speech)', | 837 'input_speech%': '<(input_speech)', |
| 835 'notifications%': '<(notifications)', | 838 'notifications%': '<(notifications)', |
| 836 'clang_use_chrome_plugins%': '<(clang_use_chrome_plugins)', | 839 'clang_use_chrome_plugins%': '<(clang_use_chrome_plugins)', |
| 837 'mac_want_real_dsym%': '<(mac_want_real_dsym)', | 840 'mac_want_real_dsym%': '<(mac_want_real_dsym)', |
| 838 'asan%': '<(asan)', | 841 'asan%': '<(asan)', |
| 839 'lsan%': '<(lsan)', | 842 'lsan%': '<(lsan)', |
| 840 'msan%': '<(msan)', | 843 'msan%': '<(msan)', |
| 841 'tsan%': '<(tsan)', | 844 'tsan%': '<(tsan)', |
| 842 'tsan_blacklist%': '<(tsan_blacklist)', | 845 'tsan_blacklist%': '<(tsan_blacklist)', |
| 846 'use_instrumented_libraries%': '<(use_instrumented_libraries)', | |
| 843 'clang_type_profiler%': '<(clang_type_profiler)', | 847 'clang_type_profiler%': '<(clang_type_profiler)', |
| 844 'order_profiling%': '<(order_profiling)', | 848 'order_profiling%': '<(order_profiling)', |
| 845 'order_text_section%': '<(order_text_section)', | 849 'order_text_section%': '<(order_text_section)', |
| 846 'enable_extensions%': '<(enable_extensions)', | 850 'enable_extensions%': '<(enable_extensions)', |
| 847 'enable_plugin_installation%': '<(enable_plugin_installation)', | 851 'enable_plugin_installation%': '<(enable_plugin_installation)', |
| 848 'enable_plugins%': '<(enable_plugins)', | 852 'enable_plugins%': '<(enable_plugins)', |
| 849 'enable_session_service%': '<(enable_session_service)', | 853 'enable_session_service%': '<(enable_session_service)', |
| 850 'enable_themes%': '<(enable_themes)', | 854 'enable_themes%': '<(enable_themes)', |
| 851 'enable_autofill_dialog%': '<(enable_autofill_dialog)', | 855 'enable_autofill_dialog%': '<(enable_autofill_dialog)', |
| 852 'enable_background%': '<(enable_background)', | 856 'enable_background%': '<(enable_background)', |
| (...skipping 2506 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 3359 'target_conditions': [ | 3363 'target_conditions': [ |
| 3360 ['_type=="executable"', { | 3364 ['_type=="executable"', { |
| 3361 'ldflags': [ | 3365 'ldflags': [ |
| 3362 '-pie', | 3366 '-pie', |
| 3363 ], | 3367 ], |
| 3364 }], | 3368 }], |
| 3365 ], | 3369 ], |
| 3366 }], | 3370 }], |
| 3367 ], | 3371 ], |
| 3368 }], | 3372 }], |
| 3373 ['use_instrumented_libraries==1', { | |
| 3374 'dependencies': [ | |
| 3375 '<(DEPTH)/third_party/instrumented_libraries/instrumented_librarie s.gyp:instrumented_libraries', | |
| 3376 ], | |
| 3377 'conditions': [ | |
| 3378 ['asan==1', { | |
| 3379 'target_conditions': [ | |
| 3380 ['_toolset=="target"', { | |
| 3381 'ldflags': [ | |
| 3382 '-Wl,-R,\\$$ORIGIN/instrumented_libraries/asan/lib/:\\$$OR IGIN/instrumented_libraries/asan/usr/lib/x86_64-linux-gnu/', | |
|
Alexander Potapenko
2013/10/29 13:36:11
Pls add a comment for these flags.
alextaran1
2013/10/30 11:16:29
Done.
| |
| 3383 '-Wl,-z,origin', | |
| 3384 ], | |
| 3385 }], | |
| 3386 ], | |
| 3387 }], | |
| 3388 ], | |
| 3389 }], | |
| 3369 ['order_profiling!=0 and (chromeos==1 or OS=="linux" or OS=="android") ', { | 3390 ['order_profiling!=0 and (chromeos==1 or OS=="linux" or OS=="android") ', { |
| 3370 'target_conditions' : [ | 3391 'target_conditions' : [ |
| 3371 ['_toolset=="target"', { | 3392 ['_toolset=="target"', { |
| 3372 'cflags': [ | 3393 'cflags': [ |
| 3373 '-finstrument-functions', | 3394 '-finstrument-functions', |
| 3374 # Allow mmx intrinsics to inline, so that the | 3395 # Allow mmx intrinsics to inline, so that the |
| 3375 #0 compiler can expand the intrinsics. | 3396 #0 compiler can expand the intrinsics. |
| 3376 '-finstrument-functions-exclude-file-list=mmintrin.h', | 3397 '-finstrument-functions-exclude-file-list=mmintrin.h', |
| 3377 ], | 3398 ], |
| 3378 }], | 3399 }], |
| (...skipping 1366 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 4745 # settings in target dicts. SYMROOT is a special case, because many other | 4766 # settings in target dicts. SYMROOT is a special case, because many other |
| 4746 # Xcode variables depend on it, including variables such as | 4767 # Xcode variables depend on it, including variables such as |
| 4747 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something | 4768 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something |
| 4748 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the | 4769 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the |
| 4749 # files to appear (when present) in the UI as actual files and not red | 4770 # files to appear (when present) in the UI as actual files and not red |
| 4750 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, | 4771 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, |
| 4751 # and therefore SYMROOT, needs to be set at the project level. | 4772 # and therefore SYMROOT, needs to be set at the project level. |
| 4752 'SYMROOT': '<(DEPTH)/xcodebuild', | 4773 'SYMROOT': '<(DEPTH)/xcodebuild', |
| 4753 }, | 4774 }, |
| 4754 } | 4775 } |
| OLD | NEW |