| 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 4167 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4178 'cflags': [ | 4178 'cflags': [ |
| 4179 '-fsanitize=address', | 4179 '-fsanitize=address', |
| 4180 # TODO(earthdok): Re-enable. http://crbug.com/427202 | 4180 # TODO(earthdok): Re-enable. http://crbug.com/427202 |
| 4181 #'-fsanitize-blacklist=<(asan_blacklist)', | 4181 #'-fsanitize-blacklist=<(asan_blacklist)', |
| 4182 ], | 4182 ], |
| 4183 'ldflags': [ | 4183 'ldflags': [ |
| 4184 '-fsanitize=address', | 4184 '-fsanitize=address', |
| 4185 ], | 4185 ], |
| 4186 }], | 4186 }], |
| 4187 ], | 4187 ], |
| 4188 'conditions': [ | |
| 4189 ['OS=="mac"', { | |
| 4190 'cflags': [ | |
| 4191 '-mllvm -asan-globals=0', # http://crbug.com/352073 | |
| 4192 ], | |
| 4193 }], | |
| 4194 ], | |
| 4195 }], | 4188 }], |
| 4196 ['ubsan==1', { | 4189 ['ubsan==1', { |
| 4197 'target_conditions': [ | 4190 'target_conditions': [ |
| 4198 ['_toolset=="target"', { | 4191 ['_toolset=="target"', { |
| 4199 'cflags': [ | 4192 'cflags': [ |
| 4200 '-fsanitize=undefined', | 4193 '-fsanitize=undefined', |
| 4201 # -fsanitize=vptr is incompatible with -fno-rtti. | 4194 # -fsanitize=vptr is incompatible with -fno-rtti. |
| 4202 '-fno-sanitize=vptr', | 4195 '-fno-sanitize=vptr', |
| 4203 # Employ the experimental PBQP register allocator to avoid | 4196 # Employ the experimental PBQP register allocator to avoid |
| 4204 # slow compilation on files with too many basic blocks. | 4197 # slow compilation on files with too many basic blocks. |
| (...skipping 695 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4900 'conditions': [ | 4893 'conditions': [ |
| 4901 ['clang==1', { | 4894 ['clang==1', { |
| 4902 'variables': { | 4895 'variables': { |
| 4903 'clang_dir': '../third_party/llvm-build/Release+Asserts/bin', | 4896 'clang_dir': '../third_party/llvm-build/Release+Asserts/bin', |
| 4904 }, | 4897 }, |
| 4905 }], | 4898 }], |
| 4906 ['asan==1', { | 4899 ['asan==1', { |
| 4907 'xcode_settings': { | 4900 'xcode_settings': { |
| 4908 'OTHER_CFLAGS': [ | 4901 'OTHER_CFLAGS': [ |
| 4909 '-fsanitize=address', | 4902 '-fsanitize=address', |
| 4910 '-mllvm -asan-globals=0', # http://crbug.com/352073 | |
| 4911 '-gline-tables-only', | 4903 '-gline-tables-only', |
| 4912 ], | 4904 ], |
| 4913 }, | 4905 }, |
| 4914 }], | 4906 }], |
| 4915 ['asan_coverage!=0', { | 4907 ['asan_coverage!=0', { |
| 4916 'target_conditions': [ | 4908 'target_conditions': [ |
| 4917 ['_toolset=="target"', { | 4909 ['_toolset=="target"', { |
| 4918 'cflags': [ | 4910 'cflags': [ |
| 4919 '-mllvm -asan-coverage=<(asan_coverage)', | 4911 '-mllvm -asan-coverage=<(asan_coverage)', |
| 4920 ], | 4912 ], |
| (...skipping 924 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5845 # settings in target dicts. SYMROOT is a special case, because many other | 5837 # settings in target dicts. SYMROOT is a special case, because many other |
| 5846 # Xcode variables depend on it, including variables such as | 5838 # Xcode variables depend on it, including variables such as |
| 5847 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something | 5839 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something |
| 5848 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the | 5840 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the |
| 5849 # files to appear (when present) in the UI as actual files and not red | 5841 # files to appear (when present) in the UI as actual files and not red |
| 5850 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, | 5842 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, |
| 5851 # and therefore SYMROOT, needs to be set at the project level. | 5843 # and therefore SYMROOT, needs to be set at the project level. |
| 5852 'SYMROOT': '<(DEPTH)/xcodebuild', | 5844 'SYMROOT': '<(DEPTH)/xcodebuild', |
| 5853 }, | 5845 }, |
| 5854 } | 5846 } |
| OLD | NEW |