diff options
| author | 2020-06-03 17:03:26 +0800 | |
|---|---|---|
| committer | 2020-06-03 18:27:20 +0800 | |
| commit | 1b8283358e757de930fdef24055b7086894d07bd (patch) | |
| tree | f84144468f11a80789d8b5070204d028b6e515fa /tools/warn/java_warn_patterns.py | |
| parent | 5638065faa50e5866044c2199dc998a70aa9bce5 (diff) | |
Refactor *-select-bitness-of-required-modules
* Streamline required module bitness resolution
If a module is for cross host OS, the required modules are also for that
OS.
Otherwise if the requirer module is native and the required module is
shared library or native test, then the required module resolves to the
same bitness.
Otherwise the required module resolves to both variants, if they exist.
* Factor out the common logic and merge
  <target|host|host-cross>-select-bitness-of-required-modules
This lays the road for follow-up changes to add bitness suffix support.
This slightly reduces readibility. To make up for the loss, the
bitness-resolving logic is easier to maintain since we don't have
multiple copies of *-select-bitness-of-required-modules.
Bug: 155869107
Test: check the diff of product_target_FILES and product_host_FILES
Test: check the diff of ALL_MODULES.*.REQUIRED_FROM_(TARGET|HOST)
Change-Id: Ib2f4b548535e983d621dad71cb920101111140f2
Diffstat (limited to 'tools/warn/java_warn_patterns.py')
0 files changed, 0 insertions, 0 deletions