diff options
author | 2023-12-13 15:19:49 -0800 | |
---|---|---|
committer | 2023-12-14 16:12:20 -0800 | |
commit | 402130276c75fd967dcae894bd363edc3050d205 (patch) | |
tree | af5ac63244065c4438c95f14667fde8f329cbd2b /rust/protobuf.go | |
parent | bc7d76cca2a9eead34b45bcdf333eecdb4152879 (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 'rust/protobuf.go')
-rw-r--r-- | rust/protobuf.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/rust/protobuf.go b/rust/protobuf.go index 8d231bb4d..b95d8cbab 100644 --- a/rust/protobuf.go +++ b/rust/protobuf.go @@ -186,7 +186,7 @@ func (proto *protobufDecorator) GenerateSource(ctx ModuleContext, deps PathDeps) // stemFile must be first here as the first path in BaseSourceProvider.OutputFiles is the library entry-point. proto.BaseSourceProvider.OutputFiles = append(android.Paths{stemFile}, outputs.Paths()...) - ctx.SetProvider(cc.FlagExporterInfoProvider, cc.FlagExporterInfo{ + android.SetProvider(ctx, cc.FlagExporterInfoProvider, cc.FlagExporterInfo{ IncludeDirs: android.PathsForModuleSrc(ctx, proto.Properties.Exported_include_dirs), }) |