fix: required deps of phony modules are correctly tracked
ArchType.Multilib of native modules are either lib32 or lib64. Arch-neural modules have "" not "common". Bug: 321626681 Test: go test ./... Change-Id: Ie7e6a5203e9f671487dbf32ea2343ada7407a28f
This commit is contained in:
@@ -1055,7 +1055,7 @@ func (m *ModuleBase) addRequiredDeps(ctx BottomUpMutatorContext) {
|
||||
// TODO(jiyong): the Make-side does this only when the required module is a shared
|
||||
// library or a native test.
|
||||
bothInAndroid := m.Device() && target.Os.Class == Device
|
||||
nativeArch := m.Arch().ArchType.Multilib != string(MultilibCommon)
|
||||
nativeArch := InList(m.Arch().ArchType.Multilib, []string{"lib32", "lib64"})
|
||||
sameBitness := m.Arch().ArchType.Multilib == target.Arch.ArchType.Multilib
|
||||
if bothInAndroid && nativeArch && !sameBitness {
|
||||
return
|
||||
|
Reference in New Issue
Block a user