| Index: build/config/mac/BUILD.gn
|
| diff --git a/build/config/mac/BUILD.gn b/build/config/mac/BUILD.gn
|
| index 958dea9c4d1a5ca93cc00cd44fc82a42e683b7dd..ad67ab2af6fc297545a6dbb0c93fbf167f2951b3 100644
|
| --- a/build/config/mac/BUILD.gn
|
| +++ b/build/config/mac/BUILD.gn
|
| @@ -6,6 +6,7 @@ import("//build/config/sysroot.gni")
|
| import("//build/config/ios/ios_sdk.gni")
|
| import("//build/config/mac/mac_sdk.gni")
|
| import("//build/config/mac/symbols.gni")
|
| +import("//build/config/sanitizers/sanitizers.gni")
|
|
|
| # This is included by reference in the //build/config/compiler config that
|
| # is applied to all targets. It is here to separate out the logic.
|
| @@ -92,7 +93,7 @@ config("runtime_library") {
|
| config("mac_dynamic_flags") {
|
| ldflags = [ "-Wl,-ObjC" ] # Always load Objective-C categories and classes.
|
|
|
| - if (is_component_build) {
|
| + if (is_component_build || is_asan) {
|
| ldflags += [
|
| # Path for loading shared libraries for unbundled binaries.
|
| "-Wl,-rpath,@loader_path/.",
|
|
|