commit | 2b07ec7b3bbf101d770dacdc46ebf1f1268c78f7 | [log] [tgz] |
---|---|---|
author | Liz Kammer <eakammer@google.com> | Wed May 26 15:08:27 2021 -0400 |
committer | Liz Kammer <eakammer@google.com> | Wed May 26 16:58:54 2021 -0400 |
tree | bf2c28bc5c5398537dc56a608e11940bdc626cad | |
parent | bcf5304eaba149419905b2c8b5e21f2c168bdbbd [diff] [blame] |
Support empty srcs for configurable attrs Test: mixed build linkerconfig Change-Id: I1ee56f7fa46ce2971ecae6d2ca9258631a32f46a
diff --git a/bp2build/build_conversion.go b/bp2build/build_conversion.go index 388c8cf..6bdfc0e 100644 --- a/bp2build/build_conversion.go +++ b/bp2build/build_conversion.go
@@ -445,7 +445,7 @@ return prettyPrint(propertyValue.Elem(), indent) case reflect.Slice: if propertyValue.Len() == 0 { - return "", nil + return "[]", nil } if propertyValue.Len() == 1 {