Skip to content

Commit

Permalink
Follow signature update to ExtendMatchingProperties
Browse files Browse the repository at this point in the history
The order function passed to ExtendMatchingProperites no longer takes
a property, dstValue or srcValue parameter.

Test: builds
Change-Id: I19fc554f705fbf42100f0a38df87e2d1fb2454ec
  • Loading branch information
colincross committed Feb 2, 2024
1 parent 984223f commit 1e7e043
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions android/arch.go
Original file line number Diff line number Diff line change
Expand Up @@ -1060,9 +1060,7 @@ func mergePropertyStruct(ctx ArchVariantContext, dst interface{}, srcValue refle
// order checks the `android:"variant_prepend"` tag to handle properties where the
// arch-specific value needs to come before the generic value, for example for lists of
// include directories.
order := func(property string,
dstField, srcField reflect.StructField,
dstValue, srcValue interface{}) (proptools.Order, error) {
order := func(dstField, srcField reflect.StructField) (proptools.Order, error) {
if proptools.HasTag(dstField, "android", "variant_prepend") {
return proptools.Prepend, nil
} else {
Expand Down

0 comments on commit 1e7e043

Please sign in to comment.