Don't tell make about modules in other namespaces

This was causing build breaks when different devices moved to Android.bp
at different times.

Bug: 150878976
Test: build *_hwasan targets
Change-Id: I68912bb6a5696809c318d1ec816a1bcfbe2df245
Merged-In: I68912bb6a5696809c318d1ec816a1bcfbe2df245
(cherry picked from commit 7b6af23db6)
This commit is contained in:
Dan Willemsen
2020-05-03 21:28:32 -07:00
parent b39e15d3f3
commit b5b2aba43b

View File

@@ -1041,7 +1041,7 @@ func sanitizerMutator(t sanitizerType) func(android.BottomUpMutatorContext) {
}
// Export the static lib name to make
if c.static() {
if c.static() && c.ExportedToMake() {
if t == cfi {
appendStringSync(c.Name(), cfiStaticLibs(mctx.Config()), &cfiStaticLibsMutex)
} else if t == hwasan {