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 3639 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3650 # Functions interposed by the sanitizers can make ld think | 3650 # Functions interposed by the sanitizers can make ld think |
3651 # that some libraries aren't needed when they actually are, | 3651 # that some libraries aren't needed when they actually are, |
3652 # http://crbug.com/234010. As workaround, disable --as-needed. | 3652 # http://crbug.com/234010. As workaround, disable --as-needed. |
3653 '-Wl,--as-needed', | 3653 '-Wl,--as-needed', |
3654 ], | 3654 ], |
3655 'defines': [ | 3655 'defines': [ |
3656 'MEMORY_TOOL_REPLACES_ALLOCATOR', | 3656 'MEMORY_TOOL_REPLACES_ALLOCATOR', |
3657 ], | 3657 ], |
3658 }], | 3658 }], |
3659 ], | 3659 ], |
| 3660 # TODO(glider): enable the default options on other systems. |
| 3661 'conditions': [ |
| 3662 ['OS=="linux" and (chromeos==0 or target_arch!="ia32")', { |
| 3663 'dependencies': [ |
| 3664 '<(DEPTH)/base/base.gyp:sanitizer_options', |
| 3665 ], |
| 3666 }], |
| 3667 ], |
3660 }], | 3668 }], |
3661 ['asan==1', { | 3669 ['asan==1', { |
3662 'target_conditions': [ | 3670 'target_conditions': [ |
3663 ['_toolset=="target"', { | 3671 ['_toolset=="target"', { |
3664 'cflags': [ | 3672 'cflags': [ |
3665 '-fsanitize=address', | 3673 '-fsanitize=address', |
3666 '-w', # http://crbug.com/162783 | 3674 '-w', # http://crbug.com/162783 |
3667 ], | 3675 ], |
3668 'ldflags': [ | 3676 'ldflags': [ |
3669 '-fsanitize=address', | 3677 '-fsanitize=address', |
(...skipping 1559 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5229 # settings in target dicts. SYMROOT is a special case, because many other | 5237 # settings in target dicts. SYMROOT is a special case, because many other |
5230 # Xcode variables depend on it, including variables such as | 5238 # Xcode variables depend on it, including variables such as |
5231 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something | 5239 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something |
5232 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the | 5240 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the |
5233 # files to appear (when present) in the UI as actual files and not red | 5241 # files to appear (when present) in the UI as actual files and not red |
5234 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, | 5242 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, |
5235 # and therefore SYMROOT, needs to be set at the project level. | 5243 # and therefore SYMROOT, needs to be set at the project level. |
5236 'SYMROOT': '<(DEPTH)/xcodebuild', | 5244 'SYMROOT': '<(DEPTH)/xcodebuild', |
5237 }, | 5245 }, |
5238 } | 5246 } |
OLD | NEW |