Skip to content

Commit b17cb62

Browse files
authored
build: fix crashpad+asan (electron#23180)
1 parent e65cac6 commit b17cb62

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

BUILD.gn

+6
Original file line numberDiff line numberDiff line change
@@ -757,6 +757,12 @@ if (is_mac) {
757757
outputs = [ "{{bundle_resources_dir}}/{{source_file_part}}" ]
758758

759759
public_deps = [ "//third_party/crashpad/crashpad/handler:crashpad_handler" ]
760+
761+
if (is_asan) {
762+
# crashpad_handler requires the ASan runtime at its @executable_path.
763+
sources += [ "$root_out_dir/libclang_rt.asan_osx_dynamic.dylib" ]
764+
public_deps += [ "//build/config/sanitizers:copy_asan_runtime" ]
765+
}
760766
}
761767

762768
mac_framework_bundle("electron_framework") {

0 commit comments

Comments
 (0)