build: fix crashpad+asan (#23180)

This commit is contained in:
Jeremy Apthorp 2020-04-20 14:50:10 -07:00 committed by GitHub
parent e65cac6ae8
commit b17cb62287
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -757,6 +757,12 @@ if (is_mac) {
outputs = [ "{{bundle_resources_dir}}/{{source_file_part}}" ]
public_deps = [ "//third_party/crashpad/crashpad/handler:crashpad_handler" ]
if (is_asan) {
# crashpad_handler requires the ASan runtime at its @executable_path.
sources += [ "$root_out_dir/libclang_rt.asan_osx_dynamic.dylib" ]
public_deps += [ "//build/config/sanitizers:copy_asan_runtime" ]
}
}
mac_framework_bundle("electron_framework") {