bp2build: arch-configurable selects for label list attrs.
This CL adds the configurable LabelListAttribute support to bp2build. Test: go test Change-Id: I2ef9e385d9cf1b1845988128eca1d8cda1ecb5e8
This commit is contained in:
@@ -485,7 +485,7 @@ func ShTestHostFactory() android.Module {
|
||||
}
|
||||
|
||||
type bazelShBinaryAttributes struct {
|
||||
Srcs bazel.LabelList
|
||||
Srcs bazel.LabelListAttribute
|
||||
// Bazel also supports the attributes below, but (so far) these are not required for Bionic
|
||||
// deps
|
||||
// data
|
||||
@@ -525,7 +525,8 @@ func ShBinaryBp2Build(ctx android.TopDownMutatorContext) {
|
||||
return
|
||||
}
|
||||
|
||||
srcs := android.BazelLabelForModuleSrc(ctx, []string{*m.properties.Src})
|
||||
srcs := bazel.MakeLabelListAttribute(
|
||||
android.BazelLabelForModuleSrc(ctx, []string{*m.properties.Src}))
|
||||
|
||||
attrs := &bazelShBinaryAttributes{
|
||||
Srcs: srcs,
|
||||
|
Reference in New Issue
Block a user