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 3603 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3614 # Functions interposed by the sanitizers can make ld think | 3614 # Functions interposed by the sanitizers can make ld think |
3615 # that some libraries aren't needed when they actually are, | 3615 # that some libraries aren't needed when they actually are, |
3616 # http://crbug.com/234010. As workaround, disable --as-needed. | 3616 # http://crbug.com/234010. As workaround, disable --as-needed. |
3617 '-Wl,--as-needed', | 3617 '-Wl,--as-needed', |
3618 ], | 3618 ], |
3619 'defines': [ | 3619 'defines': [ |
3620 'MEMORY_TOOL_REPLACES_ALLOCATOR', | 3620 'MEMORY_TOOL_REPLACES_ALLOCATOR', |
3621 ], | 3621 ], |
3622 }], | 3622 }], |
3623 ], | 3623 ], |
3624 # TODO(glider): enable the default options on other systems. | |
3625 'conditions': [ | |
3626 ['OS=="linux"', { | |
3627 'dependencies': [ | |
3628 '<(DEPTH)/base/base.gyp:sanitizer_options', | |
3629 ], | |
3630 }], | |
3631 ], | |
3632 }], | 3624 }], |
3633 ['asan==1', { | 3625 ['asan==1', { |
3634 'target_conditions': [ | 3626 'target_conditions': [ |
3635 ['_toolset=="target"', { | 3627 ['_toolset=="target"', { |
3636 'cflags': [ | 3628 'cflags': [ |
3637 '-fsanitize=address', | 3629 '-fsanitize=address', |
3638 '-w', # http://crbug.com/162783 | 3630 '-w', # http://crbug.com/162783 |
3639 ], | 3631 ], |
3640 'ldflags': [ | 3632 'ldflags': [ |
3641 '-fsanitize=address', | 3633 '-fsanitize=address', |
(...skipping 1548 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5190 # settings in target dicts. SYMROOT is a special case, because many other | 5182 # settings in target dicts. SYMROOT is a special case, because many other |
5191 # Xcode variables depend on it, including variables such as | 5183 # Xcode variables depend on it, including variables such as |
5192 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something | 5184 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something |
5193 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the | 5185 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the |
5194 # files to appear (when present) in the UI as actual files and not red | 5186 # files to appear (when present) in the UI as actual files and not red |
5195 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, | 5187 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, |
5196 # and therefore SYMROOT, needs to be set at the project level. | 5188 # and therefore SYMROOT, needs to be set at the project level. |
5197 'SYMROOT': '<(DEPTH)/xcodebuild', | 5189 'SYMROOT': '<(DEPTH)/xcodebuild', |
5198 }, | 5190 }, |
5199 } | 5191 } |
OLD | NEW |