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 3462 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3473 'target_conditions': [ | 3473 'target_conditions': [ |
3474 ['_toolset=="target"', { | 3474 ['_toolset=="target"', { |
3475 'ldflags': [ | 3475 'ldflags': [ |
3476 # Add RPATH to result binary to make it linking instrument
ed libraries ($ORIGIN means relative RPATH) | 3476 # Add RPATH to result binary to make it linking instrument
ed libraries ($ORIGIN means relative RPATH) |
3477 '-Wl,-R,\$$ORIGIN/instrumented_libraries/asan/lib/:\$$ORIG
IN/instrumented_libraries/asan/usr/lib/x86_64-linux-gnu/', | 3477 '-Wl,-R,\$$ORIGIN/instrumented_libraries/asan/lib/:\$$ORIG
IN/instrumented_libraries/asan/usr/lib/x86_64-linux-gnu/', |
3478 '-Wl,-z,origin', | 3478 '-Wl,-z,origin', |
3479 ], | 3479 ], |
3480 }], | 3480 }], |
3481 ], | 3481 ], |
3482 }], | 3482 }], |
| 3483 ['msan==1', { |
| 3484 'target_conditions': [ |
| 3485 ['_toolset=="target"', { |
| 3486 'ldflags': [ |
| 3487 '-Wl,-R,\$$ORIGIN/instrumented_libraries/msan/lib/:\$$ORIG
IN/instrumented_libraries/msan/usr/lib/x86_64-linux-gnu/', |
| 3488 '-Wl,-z,origin', |
| 3489 ], |
| 3490 }], |
| 3491 ], |
| 3492 }], |
3483 ], | 3493 ], |
3484 }], | 3494 }], |
3485 ['order_profiling!=0 and (chromeos==1 or OS=="linux" or OS=="android")
', { | 3495 ['order_profiling!=0 and (chromeos==1 or OS=="linux" or OS=="android")
', { |
3486 'target_conditions' : [ | 3496 'target_conditions' : [ |
3487 ['_toolset=="target"', { | 3497 ['_toolset=="target"', { |
3488 'cflags': [ | 3498 'cflags': [ |
3489 '-finstrument-functions', | 3499 '-finstrument-functions', |
3490 # Allow mmx intrinsics to inline, so that the | 3500 # Allow mmx intrinsics to inline, so that the |
3491 #0 compiler can expand the intrinsics. | 3501 #0 compiler can expand the intrinsics. |
3492 '-finstrument-functions-exclude-file-list=mmintrin.h', | 3502 '-finstrument-functions-exclude-file-list=mmintrin.h', |
(...skipping 1281 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4774 # settings in target dicts. SYMROOT is a special case, because many other | 4784 # settings in target dicts. SYMROOT is a special case, because many other |
4775 # Xcode variables depend on it, including variables such as | 4785 # Xcode variables depend on it, including variables such as |
4776 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something | 4786 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something |
4777 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the | 4787 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the |
4778 # files to appear (when present) in the UI as actual files and not red | 4788 # files to appear (when present) in the UI as actual files and not red |
4779 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, | 4789 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, |
4780 # and therefore SYMROOT, needs to be set at the project level. | 4790 # and therefore SYMROOT, needs to be set at the project level. |
4781 'SYMROOT': '<(DEPTH)/xcodebuild', | 4791 'SYMROOT': '<(DEPTH)/xcodebuild', |
4782 }, | 4792 }, |
4783 } | 4793 } |
OLD | NEW |