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/config/chrome_build.gni") | 5 import("//build/config/chrome_build.gni") |
6 import("//build/config/chromecast_build.gni") | 6 import("//build/config/chromecast_build.gni") |
7 import("//build/config/sanitizers/sanitizers.gni") | 7 import("//build/config/sanitizers/sanitizers.gni") |
8 import("//build/toolchain/toolchain.gni") | 8 import("//build/toolchain/toolchain.gni") |
9 | 9 |
10 # Contains the dependencies needed for sanitizers to link into executables and | 10 # Contains the dependencies needed for sanitizers to link into executables and |
(...skipping 10 matching lines...) Expand all Loading... |
21 # Even when a target removes default_sanitizer_flags, it may be depending | 21 # Even when a target removes default_sanitizer_flags, it may be depending |
22 # on a library that did not remove default_sanitizer_flags. Thus, we need | 22 # on a library that did not remove default_sanitizer_flags. Thus, we need |
23 # to add the ldflags here as well as in default_sanitizer_flags. | 23 # to add the ldflags here as well as in default_sanitizer_flags. |
24 ":default_sanitizer_ldflags", | 24 ":default_sanitizer_ldflags", |
25 ] | 25 ] |
26 deps = [ | 26 deps = [ |
27 ":options_sources", | 27 ":options_sources", |
28 ] | 28 ] |
29 } | 29 } |
30 if (use_afl) { | 30 if (use_afl) { |
31 deps += [ "//third_party/afl:afl_runtime" ] | 31 deps += [ "//third_party/afl" ] |
32 } | 32 } |
33 } | 33 } |
34 | 34 |
35 group("deps_no_options") { | 35 group("deps_no_options") { |
36 if (using_sanitizer) { | 36 if (using_sanitizer) { |
37 public_configs = [ | 37 public_configs = [ |
38 # Even when a target removes default_sanitizer_flags, it may be depending | 38 # Even when a target removes default_sanitizer_flags, it may be depending |
39 # on a library that did not remove default_sanitizer_flags. Thus, we need | 39 # on a library that did not remove default_sanitizer_flags. Thus, we need |
40 # to add the ldflags here as well as in default_sanitizer_flags. | 40 # to add the ldflags here as well as in default_sanitizer_flags. |
41 ":default_sanitizer_ldflags", | 41 ":default_sanitizer_ldflags", |
(...skipping 390 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
432 # This allows to selectively disable ubsan_vptr, when needed. In particular, | 432 # This allows to selectively disable ubsan_vptr, when needed. In particular, |
433 # if some third_party code is required to be compiled without rtti, which | 433 # if some third_party code is required to be compiled without rtti, which |
434 # is a requirement for ubsan_vptr. | 434 # is a requirement for ubsan_vptr. |
435 config("default_sanitizer_flags_but_ubsan_vptr") { | 435 config("default_sanitizer_flags_but_ubsan_vptr") { |
436 configs = all_sanitizer_configs - [ ":ubsan_vptr_flags" ] | 436 configs = all_sanitizer_configs - [ ":ubsan_vptr_flags" ] |
437 } | 437 } |
438 | 438 |
439 config("default_sanitizer_flags_but_coverage") { | 439 config("default_sanitizer_flags_but_coverage") { |
440 configs = all_sanitizer_configs - [ ":coverage_flags" ] | 440 configs = all_sanitizer_configs - [ ":coverage_flags" ] |
441 } | 441 } |
OLD | NEW |