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

Unified Diff: build/config/gcc/BUILD.gn

Issue 1524923002: Use rpath for sanitizers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@rpath
Patch Set: Created 5 years 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: build/config/gcc/BUILD.gn
diff --git a/build/config/gcc/BUILD.gn b/build/config/gcc/BUILD.gn
index b0fc9812cf5153eb7dc7dd636a47b8815db7a47d..3380eb266e8be78db310eb2c531c28dcede57c48 100644
--- a/build/config/gcc/BUILD.gn
+++ b/build/config/gcc/BUILD.gn
@@ -2,6 +2,7 @@
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
+import("//build/config/sanitizers/sanitizers.gni")
import("//build/toolchain/toolchain.gni")
# This config causes functions not to be automatically exported from shared
@@ -67,7 +68,9 @@ config("executable_ldconfig") {
"-Wl,-z,nocopyreloc",
]
} else {
- if (is_component_build) {
+ # See the rpath_for... config above for why this is necessary for component
+ # builds. Sanitizers use a custom libc++ where this is also necessary.
+ if (is_component_build || using_sanitizer) {
configs = [ ":rpath_for_built_shared_libraries" ]
}
« 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