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

Commit 094956cf authored by Colin Cross's avatar Colin Cross Committed by Automerger Merge Worker
Browse files

Merge changes I02fb745a,Iccc96c0d am: a24b9deb

Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1378536

Change-Id: I109e5814ae04de65667962a3299989e0ca160d11
parents a01fc720 a24b9deb
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -969,7 +969,7 @@ func (c *Module) isCoverageVariant() bool {
}

func (c *Module) IsNdk() bool {
	return inList(c.Name(), ndkKnownLibs)
	return inList(c.BaseModuleName(), ndkKnownLibs)
}

func (c *Module) isLlndk(config android.Config) bool {
+1 −3
Original line number Diff line number Diff line
@@ -152,9 +152,7 @@ func ltoDepsMutator(mctx android.TopDownMutatorContext) {

			// Do not recurse down non-static dependencies
			if isLibTag {
				// TODO(ccross): the staticUnwinder check is there to maintain existing behavior
				//   when adding libraryDependencyTag and should be removed.
				if !libTag.static() || libTag.staticUnwinder {
				if !libTag.static() {
					return false
				}
			} else {
+1 −3
Original line number Diff line number Diff line
@@ -845,9 +845,7 @@ func collectAppDeps(ctx android.ModuleContext, app appDepsInterface,
		otherName := ctx.OtherModuleName(module)
		tag := ctx.OtherModuleDependencyTag(module)

		// TODO(ccross): The tag == cc.SharedDepTag() check should be cc.IsSharedDepTag(tag) but
		//   was left to maintain behavior when adding libraryDependencyTag.
		if IsJniDepTag(tag) || tag == cc.SharedDepTag() {
		if IsJniDepTag(tag) || cc.IsSharedDepTag(tag) {
			if dep, ok := module.(*cc.Module); ok {
				if dep.IsNdk() || dep.IsStubs() {
					return false