-
Notifications
You must be signed in to change notification settings - Fork 6k
[ios] [asan] Copy asan runtime dylib when built with "--asan" #25284
[ios] [asan] Copy asan runtime dylib when built with "--asan" #25284
Conversation
Partially addresses: flutter/flutter#78433
visibility = [ ":*" ] | ||
|
||
_libclang_base_path = | ||
"//buildtools/mac-x64/clang/lib/clang/13.0.0/lib/darwin/" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there any chance we can get this put in a path that doesn't contain the clang version, like //buildtools/mac-x64/clang/lib/clang/current/lib/darwin/
? The tool will have to do some regexing for 13.0.0
otherwise.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
GN should fail at gn gen
time if the file is not found after a toolchain update. I don't know if the toolchain contains a manifest about where certain resources are present.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh I was looking in the wrong place in this file.
outputs = [ "$root_out_dir/$_dylib_name" ]
So that would be out/ios_debug_unopt/libclang_rt.asan_ios_dynamic.dylib
. LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yup!
Partially addresses: flutter/flutter#78433