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
This commit is contained in:
@@ -16,12 +16,13 @@ package soongconfig
|
||||
|
||||
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 @@ func (s *valueVariable) PropertiesToApply(config SoongConfig, values reflect.Val
|
||||
continue
|
||||
}
|
||||
field = field.Elem()
|
||||
kind = field.Kind()
|
||||
}
|
||||
switch kind {
|
||||
case reflect.String:
|
||||
|
Reference in New Issue
Block a user