| 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 executables and |
| 17 # shared_libraries. Unconditionally depend upon this target as it is empty if | 17 # shared_libraries. Unconditionally depend upon this target as it is empty if |
| 18 # |is_asan|, |is_lsan|, |is_tsan|, |is_msan| and |use_custom_libcxx| are false. | 18 # |is_asan|, |is_lsan|, |is_tsan|, |is_msan| and |use_custom_libcxx| are false. |
| 19 group("deps") { | 19 group("deps") { |
| 20 public_deps = [ | 20 public_deps = [ |
| 21 ":deps_no_options", | 21 ":deps_no_options", |
| 22 ] | 22 ] |
| 23 if (using_sanitizer) { | 23 if (using_sanitizer) { |
| 24 public_configs = [ | 24 public_configs = [ |
| 25 ":sanitizer_options_link_helper", | 25 #":sanitizer_options_link_helper", |
| 26 | 26 |
| 27 # Even when a target removes default_sanitizer_flags, it may be depending | 27 # 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 | 28 # 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. | 29 # to add the ldflags here as well as in default_sanitizer_flags. |
| 30 ":default_sanitizer_ldflags", | 30 ":default_sanitizer_ldflags", |
| 31 ] | 31 ] |
| 32 deps = [ | 32 deps = [ |
| 33 ":options_sources", | 33 ":options_sources", |
| 34 ] | 34 ] |
| 35 } | 35 } |
| (...skipping 528 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 564 # This allows to selectively disable ubsan_vptr, when needed. In particular, | 564 # This allows to selectively disable ubsan_vptr, when needed. In particular, |
| 565 # if some third_party code is required to be compiled without rtti, which | 565 # if some third_party code is required to be compiled without rtti, which |
| 566 # is a requirement for ubsan_vptr. | 566 # is a requirement for ubsan_vptr. |
| 567 config("default_sanitizer_flags_but_ubsan_vptr") { | 567 config("default_sanitizer_flags_but_ubsan_vptr") { |
| 568 configs = all_sanitizer_configs - [ ":ubsan_vptr_flags" ] | 568 configs = all_sanitizer_configs - [ ":ubsan_vptr_flags" ] |
| 569 } | 569 } |
| 570 | 570 |
| 571 config("default_sanitizer_flags_but_coverage") { | 571 config("default_sanitizer_flags_but_coverage") { |
| 572 configs = all_sanitizer_configs - [ ":coverage_flags" ] | 572 configs = all_sanitizer_configs - [ ":coverage_flags" ] |
| 573 } | 573 } |
| OLD | NEW |