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 2682 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2693 ['clang==1 and "<(GENERATOR)"=="ninja"', { | 2693 ['clang==1 and "<(GENERATOR)"=="ninja"', { |
2694 'cflags': [ | 2694 'cflags': [ |
2695 # See http://crbug.com/110262 | 2695 # See http://crbug.com/110262 |
2696 '-fcolor-diagnostics', | 2696 '-fcolor-diagnostics', |
2697 ], | 2697 ], |
2698 }], | 2698 }], |
2699 ['asan==1', { | 2699 ['asan==1', { |
2700 'target_conditions': [ | 2700 'target_conditions': [ |
2701 ['_toolset=="target"', { | 2701 ['_toolset=="target"', { |
2702 'cflags': [ | 2702 'cflags': [ |
2703 '-fsanitize=address', | 2703 '-faddress-sanitizer', |
2704 '-fno-omit-frame-pointer', | 2704 '-fno-omit-frame-pointer', |
2705 '-w', # http://crbug.com/162783 | 2705 # See http://crbug.com/159580 |
| 2706 '-w', |
2706 ], | 2707 ], |
2707 'ldflags': [ | 2708 'ldflags': [ |
2708 '-fsanitize=address', | 2709 '-faddress-sanitizer', |
2709 ], | 2710 ], |
2710 'defines': [ | 2711 'defines': [ |
2711 'ADDRESS_SANITIZER', | 2712 'ADDRESS_SANITIZER', |
2712 ], | 2713 ], |
2713 }], | 2714 }], |
2714 ], | 2715 ], |
2715 }], | 2716 }], |
2716 ['tsan==1', { | 2717 ['tsan==1', { |
2717 'target_conditions': [ | 2718 'target_conditions': [ |
2718 ['_toolset=="target"', { | 2719 ['_toolset=="target"', { |
(...skipping 437 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3156 ], | 3157 ], |
3157 }], | 3158 }], |
3158 ], | 3159 ], |
3159 }], | 3160 }], |
3160 # Settings for building host targets using the system toolchain. | 3161 # Settings for building host targets using the system toolchain. |
3161 ['_toolset=="host"', { | 3162 ['_toolset=="host"', { |
3162 'cflags!': [ | 3163 'cflags!': [ |
3163 # Due to issues in Clang build system, using ASan on 32-bit | 3164 # Due to issues in Clang build system, using ASan on 32-bit |
3164 # binaries on x86_64 host is problematic. | 3165 # binaries on x86_64 host is problematic. |
3165 # TODO(eugenis): re-enable. | 3166 # TODO(eugenis): re-enable. |
3166 '-fsanitize=address', | 3167 '-faddress-sanitizer', |
3167 '-w', # http://crbug.com/162783 | 3168 # See http://crbug.com/159580 |
| 3169 '-w', |
3168 ], | 3170 ], |
3169 'ldflags!': [ | 3171 'ldflags!': [ |
3170 '-faddress-sanitizer', | 3172 '-faddress-sanitizer', |
3171 '-Wl,-z,noexecstack', | 3173 '-Wl,-z,noexecstack', |
3172 '-Wl,--gc-sections', | 3174 '-Wl,--gc-sections', |
3173 '-Wl,-O1', | 3175 '-Wl,-O1', |
3174 '-Wl,--as-needed', | 3176 '-Wl,--as-needed', |
3175 ], | 3177 ], |
3176 'sources/': [ | 3178 'sources/': [ |
3177 ['exclude', '_android(_unittest)?\\.cc$'], | 3179 ['exclude', '_android(_unittest)?\\.cc$'], |
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3278 }, | 3280 }, |
3279 'conditions': [ | 3281 'conditions': [ |
3280 ['clang==1', { | 3282 ['clang==1', { |
3281 'variables': { | 3283 'variables': { |
3282 'clang_dir': '../third_party/llvm-build/Release+Asserts/bin', | 3284 'clang_dir': '../third_party/llvm-build/Release+Asserts/bin', |
3283 }, | 3285 }, |
3284 }], | 3286 }], |
3285 ['asan==1', { | 3287 ['asan==1', { |
3286 'xcode_settings': { | 3288 'xcode_settings': { |
3287 'OTHER_CFLAGS': [ | 3289 'OTHER_CFLAGS': [ |
3288 '-fsanitize=address', | 3290 '-faddress-sanitizer', |
3289 '-w', # http://crbug.com/162783 | 3291 # See http://crbug.com/159580 |
| 3292 '-w', |
3290 ], | 3293 ], |
3291 }, | 3294 }, |
3292 'defines': [ | 3295 'defines': [ |
3293 'ADDRESS_SANITIZER', | 3296 'ADDRESS_SANITIZER', |
3294 ], | 3297 ], |
3295 }], | 3298 }], |
3296 ], | 3299 ], |
3297 'target_conditions': [ | 3300 'target_conditions': [ |
3298 ['_type!="static_library"', { | 3301 ['_type!="static_library"', { |
3299 'xcode_settings': {'OTHER_LDFLAGS': ['-Wl,-search_paths_first']}, | 3302 'xcode_settings': {'OTHER_LDFLAGS': ['-Wl,-search_paths_first']}, |
(...skipping 578 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3878 # settings in target dicts. SYMROOT is a special case, because many other | 3881 # settings in target dicts. SYMROOT is a special case, because many other |
3879 # Xcode variables depend on it, including variables such as | 3882 # Xcode variables depend on it, including variables such as |
3880 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something | 3883 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something |
3881 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the | 3884 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the |
3882 # files to appear (when present) in the UI as actual files and not red | 3885 # files to appear (when present) in the UI as actual files and not red |
3883 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, | 3886 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, |
3884 # and therefore SYMROOT, needs to be set at the project level. | 3887 # and therefore SYMROOT, needs to be set at the project level. |
3885 'SYMROOT': '<(DEPTH)/xcodebuild', | 3888 'SYMROOT': '<(DEPTH)/xcodebuild', |
3886 }, | 3889 }, |
3887 } | 3890 } |
OLD | NEW |