aboutsummaryrefslogtreecommitdiff
path: root/genrule
diff options
context:
space:
mode:
authorColin Cross <ccross@android.com>2023-12-13 15:19:49 -0800
committerColin Cross <ccross@android.com>2023-12-14 16:12:20 -0800
commit402130276c75fd967dcae894bd363edc3050d205 (patch)
treeaf5ac63244065c4438c95f14667fde8f329cbd2b /genrule
parentbc7d76cca2a9eead34b45bcdf333eecdb4152879 (diff)
Convert SetProvider to generic providers API
Convert all of the callers of SetProvider to use the type-safe android.SetProvider API. Bug: 316410648 Test: builds Change-Id: If58f4b5355264ddab2045bc3591a4eac19cd58fc
Diffstat (limited to 'genrule')
-rw-r--r--genrule/genrule.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/genrule/genrule.go b/genrule/genrule.go
index 0512c15b7..87f6392ee 100644
--- a/genrule/genrule.go
+++ b/genrule/genrule.go
@@ -393,7 +393,7 @@ func (g *Module) generateCommonBuildActions(ctx android.ModuleContext) {
return srcFiles
}
srcFiles := addLabelsForInputs("srcs", g.properties.Srcs, g.properties.Exclude_srcs)
- ctx.SetProvider(blueprint.SrcsFileProviderKey, blueprint.SrcsFileProviderData{SrcPaths: srcFiles.Strings()})
+ android.SetProvider(ctx, blueprint.SrcsFileProviderKey, blueprint.SrcsFileProviderData{SrcPaths: srcFiles.Strings()})
var copyFrom android.Paths
var outputFiles android.WritablePaths