Support empty srcs for configurable attrs

Test: mixed build linkerconfig
Change-Id: I1ee56f7fa46ce2971ecae6d2ca9258631a32f46a
This commit is contained in:
Liz Kammer
2021-05-26 15:08:27 -04:00
parent bcf5304eab
commit 2b07ec7b3b
5 changed files with 119 additions and 15 deletions

View File

@@ -140,7 +140,6 @@ func SubtractStrings(haystack []string, needle []string) []string {
// Return all needles in a given haystack, where needleFn is true for needles.
func FilterLabelList(haystack LabelList, needleFn func(string) bool) LabelList {
var includes []Label
for _, inc := range haystack.Includes {
if needleFn(inc.Label) {
includes = append(includes, inc)