diff options
author | 2020-08-27 13:37:29 +0200 | |
---|---|---|
committer | 2020-08-28 10:47:11 +0200 | |
commit | 31f1bb80efe196f2340ec88a6cc374963e7aa7b5 (patch) | |
tree | e05c724468ed4b91c4754c100e5c60a5b79f96e9 /rust/source_provider.go | |
parent | 19e1c6c8e7243326425ec3de089a45c8e7cd1465 (diff) |
rust: add ccToolchain to Module
The cc toolchain information is required when using cc.Stripper.
Move to a Module method to avoid importing the cc package everywhere.
Test: m nothing
Bug: 153430439
Change-Id: I497dcdff4e767ecb8b8688c73cf88850c302683d
Diffstat (limited to 'rust/source_provider.go')
-rw-r--r-- | rust/source_provider.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/rust/source_provider.go b/rust/source_provider.go index e168718e4..755a369a7 100644 --- a/rust/source_provider.go +++ b/rust/source_provider.go @@ -38,7 +38,7 @@ type BaseSourceProvider struct { var _ SourceProvider = (*BaseSourceProvider)(nil) type SourceProvider interface { - GenerateSource(ctx android.ModuleContext, deps PathDeps) android.Path + GenerateSource(ctx ModuleContext, deps PathDeps) android.Path Srcs() android.Paths SourceProviderProps() []interface{} SourceProviderDeps(ctx DepsContext, deps Deps) Deps @@ -49,7 +49,7 @@ func (sp *BaseSourceProvider) Srcs() android.Paths { return android.Paths{sp.OutputFile} } -func (sp *BaseSourceProvider) GenerateSource(ctx android.ModuleContext, deps PathDeps) android.Path { +func (sp *BaseSourceProvider) GenerateSource(ctx ModuleContext, deps PathDeps) android.Path { panic("BaseSourceProviderModule does not implement GenerateSource()") } |