This repository has been archived by the owner on Nov 10, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add used_by_wrap_script for cxx_library
Summary: When using wrap.sh to preload ASAN, you must also preload the C++ standard library to avoid android/ndk#988, which implies that the library must be placed inside the primary APK (since that's where wrap.sh needs to exist). If you're building the C++ standard library from source, you need cxx_library to support this. This is a mostly mechanical change to add a new category of native linkables to the packager and update all the relevant places. A few potentially interesting points: * We ignore libraries used by wrap scripts for native library merging, and just return them unchanged. This is for simplicity, since these libraries will be used in very limited circumstances and are not expected to be merged. Note that a library used by a wrap script cannot be an asset, so it would be ignored by native_library_merge_sequence anyway. * If a library is used by a wrap script, it would likely also make sense for all its dependents to be marked as such. We do not enforce this in any way (either by automatically marking all dependents or by erroring out if they aren't), again for simplicity, with the idea that this feature will be used in very limited circumstances by people aware of this requirement. Reviewed By: IanChilds fbshipit-source-id: e8e2dc46f26a421937d2a9b5383dc7440d019ef4
- Loading branch information
1 parent
85b17d5
commit 04ea7f9
Showing
25 changed files
with
283 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.