Allow value variables to set pointer properties
Non-null pointers were always leading to an "unsupported property type"
error due to not updating the kind field.
Bug: 319897584
Test: Presubmits
Change-Id: I058ab8d153d9507f9037d699acf6e1fe4f08f538
diff --git a/android/soongconfig/modules.go b/android/soongconfig/modules.go
index f6b4938..d525bdc 100644
--- a/android/soongconfig/modules.go
+++ b/android/soongconfig/modules.go
@@ -16,12 +16,13 @@
import (
"fmt"
- "github.com/google/blueprint/parser"
- "github.com/google/blueprint/proptools"
"io"
"reflect"
"sort"
"strings"
+
+ "github.com/google/blueprint/parser"
+ "github.com/google/blueprint/proptools"
)
const conditionsDefault = "conditions_default"
@@ -688,6 +689,7 @@
continue
}
field = field.Elem()
+ kind = field.Kind()
}
switch kind {
case reflect.String: