Merge "cc/sabi.go: Propagate ShouldCreateSourceAbiDump to reuseObjTag deps" am: c33cceb408

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

Change-Id: I9437e60b2440b5aa5e5bca4371ffcd2189575771
This commit is contained in:
Yo Chiang
2021-06-08 06:21:15 +00:00
committed by Automerger Merge Worker

View File

@@ -192,7 +192,7 @@ func sabiDepsMutator(mctx android.TopDownMutatorContext) {
// Mark all of its static library dependencies.
mctx.VisitDirectDeps(func(child android.Module) {
depTag := mctx.OtherModuleDependencyTag(child)
if libDepTag, ok := depTag.(libraryDependencyTag); ok && libDepTag.static() {
if IsStaticDepTag(depTag) || depTag == reuseObjTag {
if c, ok := child.(*Module); ok && c.sabi != nil {
// Mark this module so that .sdump for this static library can be generated.
c.sabi.Properties.ShouldCreateSourceAbiDump = true