Index: build/secondary/third_party/crashpad/crashpad/handler/BUILD.gn |
diff --git a/build/secondary/third_party/crashpad/crashpad/handler/BUILD.gn b/build/secondary/third_party/crashpad/crashpad/handler/BUILD.gn |
index 0c455f50b5e0ef54c2a82b487c482651c5f1ba7e..13a25b30f1b6adc161cb5f13afa1b90b5be23cad 100644 |
--- a/build/secondary/third_party/crashpad/crashpad/handler/BUILD.gn |
+++ b/build/secondary/third_party/crashpad/crashpad/handler/BUILD.gn |
@@ -46,4 +46,13 @@ executable("crashpad_handler") { |
"//base", |
"//build/win:default_exe_manifest", |
] |
+ |
+ if (is_mac && is_component_build) { |
+ # The handler is in Chromium.app/Contents/Versions/X/Chromium Framework.framework/Helpers/ |
+ # so set rpath up to the base. |
+ ldflags = [ |
+ "-rpath", |
+ "@loader_path/../../../../../..", |
+ ] |
+ } |
} |