diff options
| author | Colin Cross <ccross@android.com> | 2019-06-14 11:26:09 -0700 |
|---|---|---|
| committer | doc HD <doc.divxm@gmail.com> | 2019-08-02 00:50:26 +0300 |
| commit | a04f6c1062983bdfda7fb0f1be3d44f91b306621 (patch) | |
| tree | 14b715e01231d7f8158942ca890635501dec6403 /android/namespace.go | |
| parent | d51de3c1dd28c33217a1f77a2752cfdcccddaf86 (diff) | |
Give Blueprint modules access to all namespacesp9.0
Don't enforce namespaces on Blueprint modules like
bootstrap_go_package, their dependencies are handled before
namespaces are initialized in namespaceMutator.
Fixes: 135246048
Test: TestDependingOnBlueprintModuleInRootNamespace
Change-Id: I7cf1c26bb8512eed59d6b4eb42a49f7080ffa281
Diffstat (limited to 'android/namespace.go')
| -rw-r--r-- | android/namespace.go | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/android/namespace.go b/android/namespace.go index 023052432..952fd9fdb 100644 --- a/android/namespace.go +++ b/android/namespace.go @@ -230,6 +230,11 @@ func (r *NameResolver) parseFullyQualifiedName(name string) (namespaceName strin } func (r *NameResolver) getNamespacesToSearchForModule(sourceNamespace *Namespace) (searchOrder []*Namespace) { + if sourceNamespace.visibleNamespaces == nil { + // When handling dependencies before namespaceMutator, assume they are non-Soong Blueprint modules and give + // access to all namespaces. + return r.sortedNamespaces.sortedItems() + } return sourceNamespace.visibleNamespaces } |
