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/clang/clang.gni") | 7 import("//build/config/clang/clang.gni") |
8 import("//build/config/sanitizers/sanitizers.gni") | 8 import("//build/config/sanitizers/sanitizers.gni") |
9 import("//build/toolchain/toolchain.gni") | 9 import("//build/toolchain/toolchain.gni") |
10 | 10 |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
50 exe = ".exe" | 50 exe = ".exe" |
51 } else { | 51 } else { |
52 exe = "" | 52 exe = "" |
53 } | 53 } |
54 data += [ "$clang_base_path/bin/llvm-symbolizer${exe}" ] | 54 data += [ "$clang_base_path/bin/llvm-symbolizer${exe}" ] |
55 if (is_linux) { | 55 if (is_linux) { |
56 # llvm-symbolizer needs this. | 56 # llvm-symbolizer needs this. |
57 data += [ "$clang_base_path/lib/libstdc++.so.6" ] | 57 data += [ "$clang_base_path/lib/libstdc++.so.6" ] |
58 } | 58 } |
59 | 59 |
60 if (use_prebuilt_instrumented_libraries) { | 60 if (use_prebuilt_instrumented_libraries || |
| 61 use_locally_built_instrumented_libraries) { |
61 deps += [ "//third_party/instrumented_libraries:deps" ] | 62 deps += [ "//third_party/instrumented_libraries:deps" ] |
62 } | 63 } |
63 if (use_custom_libcxx) { | 64 if (use_custom_libcxx) { |
64 public_deps = [ | 65 public_deps = [ |
65 "//buildtools/third_party/libc++:libcxx_proxy", | 66 "//buildtools/third_party/libc++:libcxx_proxy", |
66 ] | 67 ] |
67 data += [ "$root_out_dir/libc++.so" ] | 68 data += [ "$root_out_dir/libc++.so" ] |
68 } | 69 } |
69 if (is_mac) { | 70 if (is_mac) { |
70 data_deps = [ | 71 data_deps = [ |
(...skipping 360 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
431 # This allows to selectively disable ubsan_vptr, when needed. In particular, | 432 # This allows to selectively disable ubsan_vptr, when needed. In particular, |
432 # 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 |
433 # is a requirement for ubsan_vptr. | 434 # is a requirement for ubsan_vptr. |
434 config("default_sanitizer_flags_but_ubsan_vptr") { | 435 config("default_sanitizer_flags_but_ubsan_vptr") { |
435 configs = all_sanitizer_configs - [ ":ubsan_vptr_flags" ] | 436 configs = all_sanitizer_configs - [ ":ubsan_vptr_flags" ] |
436 } | 437 } |
437 | 438 |
438 config("default_sanitizer_flags_but_coverage") { | 439 config("default_sanitizer_flags_but_coverage") { |
439 configs = all_sanitizer_configs - [ ":coverage_flags" ] | 440 configs = all_sanitizer_configs - [ ":coverage_flags" ] |
440 } | 441 } |
OLD | NEW |