diff options
| author | 2020-07-23 20:09:18 +0800 | |
|---|---|---|
| committer | 2020-07-24 20:05:20 +0800 | |
| commit | e812805e756d37108d16cfe7da784169369c7e86 (patch) | |
| tree | 088d313261694c96f9af68e833ffe1f1a1a4c3eb /rust/compiler.go | |
| parent | 13aa44fc15ea718b0c31a8a3c60f4bbe9cea9763 (diff) | |
Use BaseModuleName() + SubName as apexFile.moduleName
This change fixes this error:
```
TARGET module com.android.adbd.flattened requires non-existent TARGET
module: prebuilt_libclang_rt.ubsan_standalone-arm-android
```
apexFile.moduleName is used as Make dependency name, so it should use
m.BaseModuleName() instead of m.Name(), because soong may prepend
"prebuilt_" to or mutate the output of m.Name() in other ways.
android/androidmk.go emits Android.mk modules with
`LOCAL_MODULE := module.BaseModuleName() + <SubName>`, so replace
apexFile.moduleName with BaseModuleName() + <SubName> as much as
possible.
Bug: 7456955
Test: Add unit test in apex/apex_test.go
Test: lunch blueline_hwasan && SANITIZE_TARGET='hwaddress fuzzer' m nothing
Test: Verify out/soong/Android-blueline_hwasan.mk
Change-Id: If8537fc1bedbe6c3405de3662a5df210a073c43f
Diffstat (limited to 'rust/compiler.go')
0 files changed, 0 insertions, 0 deletions