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:
Cole Faust
2024-01-12 12:12:26 -08:00
parent 744a2a6b7d
commit a03ac3a75a
2 changed files with 68 additions and 6 deletions

View File

@@ -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: