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 3576 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3587 # Functions interposed by the sanitizers can make ld think | 3587 # Functions interposed by the sanitizers can make ld think |
3588 # that some libraries aren't needed when they actually are, | 3588 # that some libraries aren't needed when they actually are, |
3589 # http://crbug.com/234010. As workaround, disable --as-needed. | 3589 # http://crbug.com/234010. As workaround, disable --as-needed. |
3590 '-Wl,--as-needed', | 3590 '-Wl,--as-needed', |
3591 ], | 3591 ], |
3592 'defines': [ | 3592 'defines': [ |
3593 'MEMORY_TOOL_REPLACES_ALLOCATOR', | 3593 'MEMORY_TOOL_REPLACES_ALLOCATOR', |
3594 ], | 3594 ], |
3595 }], | 3595 }], |
3596 ], | 3596 ], |
| 3597 # TODO(glider): enable the default options on other systems. |
| 3598 'conditions': [ |
| 3599 ['OS=="linux"', { |
| 3600 'dependencies': [ |
| 3601 '<(DEPTH)/base/base.gyp:sanitizer_options', |
| 3602 ], |
| 3603 }], |
| 3604 ], |
3597 }], | 3605 }], |
3598 ['asan==1', { | 3606 ['asan==1', { |
3599 'target_conditions': [ | 3607 'target_conditions': [ |
3600 ['_toolset=="target"', { | 3608 ['_toolset=="target"', { |
3601 'cflags': [ | 3609 'cflags': [ |
3602 '-fsanitize=address', | 3610 '-fsanitize=address', |
3603 '-w', # http://crbug.com/162783 | 3611 '-w', # http://crbug.com/162783 |
3604 ], | 3612 ], |
3605 'ldflags': [ | 3613 'ldflags': [ |
3606 '-fsanitize=address', | 3614 '-fsanitize=address', |
(...skipping 1545 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5152 # settings in target dicts. SYMROOT is a special case, because many other | 5160 # settings in target dicts. SYMROOT is a special case, because many other |
5153 # Xcode variables depend on it, including variables such as | 5161 # Xcode variables depend on it, including variables such as |
5154 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something | 5162 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something |
5155 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the | 5163 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the |
5156 # files to appear (when present) in the UI as actual files and not red | 5164 # files to appear (when present) in the UI as actual files and not red |
5157 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, | 5165 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, |
5158 # and therefore SYMROOT, needs to be set at the project level. | 5166 # and therefore SYMROOT, needs to be set at the project level. |
5159 'SYMROOT': '<(DEPTH)/xcodebuild', | 5167 'SYMROOT': '<(DEPTH)/xcodebuild', |
5160 }, | 5168 }, |
5161 } | 5169 } |
OLD | NEW |