Handle no_libcrt in bp2build.
Test: ci/bp2build.sh Bug: 187928307 Change-Id: Ib80c4318169652b322e5d878c8784679e42f87dd
This commit is contained in:
@@ -234,6 +234,7 @@ type bazelCcLibraryAttributes struct {
|
||||
Whole_archive_deps bazel.LabelListAttribute
|
||||
Includes bazel.StringListAttribute
|
||||
Linkopts bazel.StringListAttribute
|
||||
Use_libcrt bazel.BoolAttribute
|
||||
|
||||
// Attributes pertaining to shared variant.
|
||||
Shared_srcs bazel.LabelListAttribute
|
||||
@@ -320,6 +321,7 @@ func CcLibraryBp2Build(ctx android.TopDownMutatorContext) {
|
||||
Whole_archive_deps: linkerAttrs.wholeArchiveDeps,
|
||||
Includes: exportedIncludes,
|
||||
Linkopts: linkerAttrs.linkopts,
|
||||
Use_libcrt: linkerAttrs.useLibcrt,
|
||||
|
||||
Shared_srcs: sharedAttrs.srcs,
|
||||
Shared_srcs_c: sharedAttrs.srcs_c,
|
||||
@@ -2262,6 +2264,7 @@ type bazelCcLibraryStaticAttributes struct {
|
||||
Whole_archive_deps bazel.LabelListAttribute
|
||||
Linkopts bazel.StringListAttribute
|
||||
Linkstatic bool
|
||||
Use_libcrt bazel.BoolAttribute
|
||||
Includes bazel.StringListAttribute
|
||||
Hdrs bazel.LabelListAttribute
|
||||
|
||||
@@ -2298,6 +2301,7 @@ func ccLibraryStaticBp2BuildInternal(ctx android.TopDownMutatorContext, module *
|
||||
|
||||
Linkopts: linkerAttrs.linkopts,
|
||||
Linkstatic: true,
|
||||
Use_libcrt: linkerAttrs.useLibcrt,
|
||||
Includes: exportedIncludes,
|
||||
|
||||
Cppflags: compilerAttrs.cppFlags,
|
||||
|
Reference in New Issue
Block a user