Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6a9bf214 authored by Mitch Phillips's avatar Mitch Phillips
Browse files

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
parent 46fc58ee
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -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"