Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

[ios] [asan] Copy asan runtime dylib when built with "--asan" #25284

Merged
merged 1 commit into from
Mar 29, 2021

Conversation

iskakaushik
Copy link
Contributor

Partially addresses: flutter/flutter#78433

visibility = [ ":*" ]

_libclang_base_path =
"//buildtools/mac-x64/clang/lib/clang/13.0.0/lib/darwin/"
Copy link
Member

@jmagman jmagman Mar 29, 2021

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.

Copy link
Member

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.

Copy link
Member

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

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yup!

@iskakaushik iskakaushik added the waiting for tree to go green This PR is approved and tested, but waiting for the tree to be green to land. label Mar 29, 2021
@fluttergithubbot fluttergithubbot merged commit dddacf4 into flutter:master Mar 29, 2021
chandarrengoog pushed a commit to chandarrengoog/engine that referenced this pull request Mar 30, 2021
duanqz pushed a commit to duanqz/engine that referenced this pull request Apr 16, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
cla: yes platform-ios waiting for tree to go green This PR is approved and tested, but waiting for the tree to be green to land.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants