Fix cc_fuzz ignoring soong namespaces.
cc_fuzz ignored soong namespaces, and built all cc_fuzz modules into the architecture package. This caused naming conflicts where two modules had the same name but were in different namespaces. Now, cc_fuzz will only build modules that are in the same namespace as the product definition - resolving the duplicate definitions error. Bug: 145240569 Test: m haiku Change-Id: I0a0acd139426301586ac5e3aba8ce5527cb7a1b5
This commit is contained in:
parent
46fc58ee8d
commit
6a9bf214f9
1 changed files with 5 additions and 0 deletions
|
@ -345,6 +345,11 @@ func (s *fuzzPackager) GenerateBuildActions(ctx android.SingletonContext) {
|
|||
return
|
||||
}
|
||||
|
||||
// Discard modules that are in an unavailable namespace.
|
||||
if !ccModule.ExportedToMake() {
|
||||
return
|
||||
}
|
||||
|
||||
s.fuzzTargets[module.Name()] = true
|
||||
|
||||
hostOrTargetString := "target"
|
||||
|
|
Loading…
Reference in a new issue