libbuildversion should be linked as a whole archive dep as soong does.
Bug: 278789968 Test: Unit tests and CI Change-Id: Ic2c44826bdc03b91cc19d93f96096ec6fdf44833
This commit is contained in:
@@ -1036,11 +1036,7 @@ func (la *linkerAttributes) bp2buildForAxisAndConfig(ctx android.BazelConversion
|
||||
_, staticLibs = android.RemoveFromList(versionLib, staticLibs)
|
||||
// only add the dep if it is not in progress
|
||||
if !versionLibAlreadyInDeps {
|
||||
if isBinary {
|
||||
wholeStaticLibs = append(wholeStaticLibs, versionLib)
|
||||
} else {
|
||||
la.implementationWholeArchiveDeps.SetSelectValue(axis, config, bazelLabelForWholeDepsExcludes(ctx, []string{versionLib}, props.Exclude_static_libs))
|
||||
}
|
||||
wholeStaticLibs = append(wholeStaticLibs, versionLib)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user