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

Side by Side Diff: third_party/instrumented_libraries/BUILD.gn

Issue 1640863002: instrumented_libraries: Make prebuilt_link_helper config stick (GN) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 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 | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright 2015 The Chromium Authors. All rights reserved. 1 # Copyright 2015 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/sanitizers/sanitizers.gni") 5 import("//build/config/sanitizers/sanitizers.gni")
6 6
7 prebuilt_available = 7 prebuilt_available =
8 is_msan && (msan_track_origins == 0 || msan_track_origins == 2) 8 is_msan && (msan_track_origins == 0 || msan_track_origins == 2)
9 9
10 group("deps") { 10 group("deps") {
11 if (use_prebuilt_instrumented_libraries) { 11 if (use_prebuilt_instrumented_libraries) {
12 assert(prebuilt_available, 12 assert(prebuilt_available,
13 "Prebuilt instrumented libraries are only available when " + 13 "Prebuilt instrumented libraries are only available when " +
14 "is_msan = true and msan_track_origins = {0, 2}") 14 "is_msan = true and msan_track_origins = {0, 2}")
15 deps = [ 15 deps = [
16 ":prebuilt", 16 ":prebuilt",
17 ] 17 ]
18 } 18 }
19 } 19 }
20 20
21 if (prebuilt_available) { 21 if (prebuilt_available) {
22 group("prebuilt") { 22 group("prebuilt") {
23 visibility = [ ":deps" ] 23 visibility = [ ":deps" ]
24 public_configs = [ ":prebuilt_link_helper" ] 24 all_dependent_configs = [ ":prebuilt_link_helper" ]
25 deps = [ 25 deps = [
26 ":extract_prebuilt_instrumented_libraries", 26 ":extract_prebuilt_instrumented_libraries",
27 ] 27 ]
28 } 28 }
29 29
30 if (is_msan) { 30 if (is_msan) {
31 sanitizer_type = "msan" 31 sanitizer_type = "msan"
32 if (msan_track_origins == 0) { 32 if (msan_track_origins == 0) {
33 archive_prefix = "msan-no-origins" 33 archive_prefix = "msan-no-origins"
34 } else if (msan_track_origins == 2) { 34 } else if (msan_track_origins == 2) {
(...skipping 23 matching lines...) Expand all
58 visibility = [ ":prebuilt" ] 58 visibility = [ ":prebuilt" ]
59 ldflags = [ 59 ldflags = [
60 # Add a relative RPATH entry to Chromium binaries. This puts instrumented 60 # Add a relative RPATH entry to Chromium binaries. This puts instrumented
61 # DSOs before system-installed versions in library search path. 61 # DSOs before system-installed versions in library search path.
62 "-Wl,-R,\$ORIGIN/instrumented_libraries_prebuilt/$sanitizer_type/lib", 62 "-Wl,-R,\$ORIGIN/instrumented_libraries_prebuilt/$sanitizer_type/lib",
63 "-Wl,-z,origin", 63 "-Wl,-z,origin",
64 ] 64 ]
65 } 65 }
66 } 66 }
67 # TODO(GYP): Support building instrumented libraries from source. 67 # TODO(GYP): Support building instrumented libraries from source.
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698