Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1277)

Side by Side Diff: build/config/sanitizers/BUILD.gn

Issue 2031903002: Update GN files w/ changes needed to make sanitizers work. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: move buildconfig changes to build/config Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « build/config/BUILD.gn ('k') | build/config/sanitizers/sanitizers.gni » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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 }
OLDNEW
« no previous file with comments | « build/config/BUILD.gn ('k') | build/config/sanitizers/sanitizers.gni » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698