| OLD | NEW |
| 1 # Copyright 2014 The Chromium Authors. All rights reserved. | 1 # Copyright 2014 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 import("//build_overrides/build.gni") | 5 import("//build_overrides/build.gni") |
| 6 import("//build/config/chrome_build.gni") | 6 import("//build/config/chrome_build.gni") |
| 7 import("//build/config/chromecast_build.gni") | 7 import("//build/config/chromecast_build.gni") |
| 8 import("//build/config/clang/clang.gni") | 8 import("//build/config/clang/clang.gni") |
| 9 import("//build/config/sanitizers/sanitizers.gni") | 9 import("//build/config/sanitizers/sanitizers.gni") |
| 10 import("//build/toolchain/toolchain.gni") | 10 import("//build/toolchain/toolchain.gni") |
| 11 | 11 |
| 12 if (is_ios) { | 12 if (is_ios) { |
| 13 import("//build/config/ios/ios_sdk.gni") | 13 import("//build/config/ios/ios_sdk.gni") |
| 14 } | 14 } |
| 15 | 15 |
| 16 # Contains the dependencies needed for sanitizers to link into executables and | 16 # Contains the dependencies needed for sanitizers to link into |
| 17 # shared_libraries. Unconditionally depend upon this target as it is empty if | 17 # executables and shared_libraries. Unconditionally depend upon |
| 18 # |is_asan|, |is_lsan|, |is_tsan|, |is_msan| and |use_custom_libcxx| are false. | 18 # "//build/config:exe_and_shlib_deps" to pull in this target. |
| 19 group("deps") { | 19 group("deps") { |
| 20 visibility = [ "//build/config:exe_and_shlib_deps" ] |
| 20 public_deps = [ | 21 public_deps = [ |
| 21 ":deps_no_options", | 22 ":deps_no_options", |
| 22 ] | 23 ] |
| 23 if (using_sanitizer) { | 24 if (using_sanitizer) { |
| 24 public_configs = [ | 25 public_configs = [ |
| 25 ":sanitizer_options_link_helper", | 26 ":sanitizer_options_link_helper", |
| 26 | 27 |
| 27 # Even when a target removes default_sanitizer_flags, it may be depending | 28 # Even when a target removes default_sanitizer_flags, it may be depending |
| 28 # on a library that did not remove default_sanitizer_flags. Thus, we need | 29 # on a library that did not remove default_sanitizer_flags. Thus, we need |
| 29 # to add the ldflags here as well as in default_sanitizer_flags. | 30 # to add the ldflags here as well as in default_sanitizer_flags. |
| (...skipping 558 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 588 # This allows to selectively disable ubsan_vptr, when needed. In particular, | 589 # This allows to selectively disable ubsan_vptr, when needed. In particular, |
| 589 # if some third_party code is required to be compiled without rtti, which | 590 # if some third_party code is required to be compiled without rtti, which |
| 590 # is a requirement for ubsan_vptr. | 591 # is a requirement for ubsan_vptr. |
| 591 config("default_sanitizer_flags_but_ubsan_vptr") { | 592 config("default_sanitizer_flags_but_ubsan_vptr") { |
| 592 configs = all_sanitizer_configs - [ ":ubsan_vptr_flags" ] | 593 configs = all_sanitizer_configs - [ ":ubsan_vptr_flags" ] |
| 593 } | 594 } |
| 594 | 595 |
| 595 config("default_sanitizer_flags_but_coverage") { | 596 config("default_sanitizer_flags_but_coverage") { |
| 596 configs = all_sanitizer_configs - [ ":coverage_flags" ] | 597 configs = all_sanitizer_configs - [ ":coverage_flags" ] |
| 597 } | 598 } |
| OLD | NEW |