convert cc_object crt property in bp2build

Bug: 263905692
Change-Id: I71e3fc4a42954c2d1f9f631d012949b81f4536de
This commit is contained in:
Sam Delmerico
2023-01-25 16:52:36 -05:00
parent ba46e76622
commit 3fad8ed0d1
2 changed files with 4 additions and 0 deletions

View File

@@ -142,6 +142,7 @@ type bazelObjectAttributes struct {
Absolute_includes bazel.StringListAttribute
Stl *string
Linker_script bazel.LabelAttribute
Crt *bool
sdkAttributes
}
@@ -208,6 +209,7 @@ func objectBp2Build(ctx android.TopDownMutatorContext, m *Module) {
Absolute_includes: compilerAttrs.absoluteIncludes,
Stl: compilerAttrs.stl,
Linker_script: linkerScript,
Crt: m.linker.(*objectLinker).Properties.Crt,
sdkAttributes: bp2BuildParseSdkAttributes(m),
}