Handle arch-variant in prebuilt_etc
For cc_binary, changing the handling of version_script to no longer be a LabelAttribute, which reduces test coverage of that type. Expand prebuilt_etc to handle arch-variant srcs and correct a bug in LabelAttribute. Test: build/bazel/ci/bp2build.sh Change-Id: I620bc3a43b28c1873f335e30099844ca79ce94c1
This commit is contained in:
@@ -48,6 +48,12 @@ func getLabelValue(label bazel.LabelAttribute) (reflect.Value, []selects) {
|
||||
}
|
||||
}
|
||||
|
||||
// if there is a select, use the base value as the conditions default value
|
||||
if len(ret) > 0 {
|
||||
ret[bazel.ConditionsDefaultSelectKey] = value
|
||||
value = reflect.Zero(value.Type())
|
||||
}
|
||||
|
||||
return value, []selects{ret}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user