Have python_*{,_host} handle arch-variants
Bug: 196081778 Test: TestPython*{,Host}ArchVariance Test: go test Test: mixed_{libc,droid}.sh Change-Id: I89304e58f5bacd61534732bade4ad6bb5f2671c0
This commit is contained in:
parent
1b5262bd69
commit
19d399d4c5
@@ -88,14 +88,11 @@ func pythonLibBp2Build(ctx android.TopDownMutatorContext, modType string) {
|
||||
// do nothing, since python_version defaults to PY2ANDPY3
|
||||
}
|
||||
|
||||
srcs := android.BazelLabelForModuleSrcExcludes(ctx, m.properties.Srcs, m.properties.Exclude_srcs)
|
||||
data := android.BazelLabelForModuleSrc(ctx, m.properties.Data)
|
||||
deps := android.BazelLabelForModuleDeps(ctx, m.properties.Libs)
|
||||
|
||||
baseAttrs := m.makeArchVariantBaseAttributes(ctx)
|
||||
attrs := &bazelPythonLibraryAttributes{
|
||||
Srcs: bazel.MakeLabelListAttribute(srcs),
|
||||
Data: bazel.MakeLabelListAttribute(data),
|
||||
Deps: bazel.MakeLabelListAttribute(deps),
|
||||
Srcs: baseAttrs.Srcs,
|
||||
Data: baseAttrs.Data,
|
||||
Deps: baseAttrs.Deps,
|
||||
Srcs_version: python_version,
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user