Fix variant errors when compiling with the NDK

This was corrupting the nonvariants list with the variants list whenever
it hit the else case, causing a missing variant issue, since we need to
use the variant when linking against lib*.ndk.

Test: aosp_arm build.ninja is the same before/after
Test: https://android-review.googlesource.com/c/355163/, set
      BOARD_VNDK_VERSION := current
Change-Id: I047937e838464670d0902506871d2203ec8cc17d
This commit is contained in:
Dan Willemsen
2017-03-28 00:08:30 -07:00
parent 107ed82035
commit 7cbf5f8e22

View File

@@ -675,7 +675,7 @@ func (c *Module) DepsMutator(actx android.BottomUpMutatorContext) {
variantLibs = append(variantLibs, entry+ndkLibrarySuffix)
}
} else {
nonvariantLibs = append(variantLibs, entry)
nonvariantLibs = append(nonvariantLibs, entry)
}
}
return nonvariantLibs, variantLibs