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:
2
cc/cc.go
2
cc/cc.go
@@ -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
|
||||
|
Reference in New Issue
Block a user