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 20 matching lines...) Expand all Loading... |
31 | 31 |
32 group("deps_no_options") { | 32 group("deps_no_options") { |
33 if (using_sanitizer) { | 33 if (using_sanitizer) { |
34 public_configs = [ | 34 public_configs = [ |
35 # Even when a target removes default_sanitizer_flags, it may be depending | 35 # Even when a target removes default_sanitizer_flags, it may be depending |
36 # on a library that did not remove default_sanitizer_flags. Thus, we need | 36 # on a library that did not remove default_sanitizer_flags. Thus, we need |
37 # to add the ldflags here as well as in default_sanitizer_flags. | 37 # to add the ldflags here as well as in default_sanitizer_flags. |
38 ":default_sanitizer_ldflags", | 38 ":default_sanitizer_ldflags", |
39 ] | 39 ] |
40 deps = [] | 40 deps = [] |
| 41 |
| 42 data = [ |
| 43 "//tools/valgrind/asan/", |
| 44 ] |
| 45 if (is_win) { |
| 46 exe = ".exe" |
| 47 } else { |
| 48 exe = "" |
| 49 } |
| 50 data += [ "//third_party//llvm-build/Release+Asserts/bin/llvm-symbolizer${ex
e}" ] |
| 51 if (is_linux) { |
| 52 # llvm-symbolizer needs this. |
| 53 data += [ "//third_party/llvm-build/Release+Asserts/lib/libstdc++.so.6" ] |
| 54 } |
| 55 |
41 if (use_prebuilt_instrumented_libraries) { | 56 if (use_prebuilt_instrumented_libraries) { |
42 deps += [ "//third_party/instrumented_libraries:deps" ] | 57 deps += [ "//third_party/instrumented_libraries:deps" ] |
43 } | 58 } |
44 if (use_custom_libcxx) { | 59 if (use_custom_libcxx) { |
45 public_deps = [ | 60 public_deps = [ |
46 "//buildtools/third_party/libc++:libcxx_proxy", | 61 "//buildtools/third_party/libc++:libcxx_proxy", |
47 ] | 62 ] |
| 63 data += [ "$root_out_dir/libc++.so" ] |
48 } | 64 } |
49 if (is_mac) { | 65 if (is_mac) { |
50 data_deps = [ | 66 data_deps = [ |
51 ":copy_asan_runtime", | 67 ":copy_asan_runtime", |
52 ] | 68 ] |
53 } | 69 } |
54 } | 70 } |
55 } | 71 } |
56 | 72 |
57 if (is_mac) { | 73 if (is_mac) { |
(...skipping 355 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
413 # This allows to selectively disable ubsan_vptr, when needed. In particular, | 429 # This allows to selectively disable ubsan_vptr, when needed. In particular, |
414 # if some third_party code is required to be compiled without rtti, which | 430 # if some third_party code is required to be compiled without rtti, which |
415 # is a requirement for ubsan_vptr. | 431 # is a requirement for ubsan_vptr. |
416 config("default_sanitizer_flags_but_ubsan_vptr") { | 432 config("default_sanitizer_flags_but_ubsan_vptr") { |
417 configs = all_sanitizer_configs - [ ":ubsan_vptr_flags" ] | 433 configs = all_sanitizer_configs - [ ":ubsan_vptr_flags" ] |
418 } | 434 } |
419 | 435 |
420 config("default_sanitizer_flags_but_coverage") { | 436 config("default_sanitizer_flags_but_coverage") { |
421 configs = all_sanitizer_configs - [ ":coverage_flags" ] | 437 configs = all_sanitizer_configs - [ ":coverage_flags" ] |
422 } | 438 } |
OLD | NEW |