Add implementation whole archive deps to binaries

...as regular whole archive deps because binaries don't have
implementation whole archive deps.

Also allowlist checkpolicy which requires this change.

Test: bp2build presubmits should now build checkpolicy
Change-Id: I1f98312da249ea1f37004ccba8799449bdbc4718
This commit is contained in:
Cole Faust
2023-06-15 15:01:30 -07:00
parent d34e4c72f3
commit 6cac8cbb26
2 changed files with 4 additions and 0 deletions

View File

@@ -609,6 +609,9 @@ func binaryBp2buildAttrs(ctx android.TopDownMutatorContext, m *Module) binaryAtt
baseAttrs.implementationDeps.Add(baseAttrs.protoDependency)
}
// binaries don't have implementation_whole_archive_deps
baseAttrs.wholeArchiveDeps.Append(baseAttrs.implementationWholeArchiveDeps)
attrs := binaryAttributes{
binaryLinkerAttrs: binaryLinkerAttrs,