summaryrefslogtreecommitdiff
path: root/rust/prebuilt.go
diff options
context:
space:
mode:
author Ivan Lozano <ivanlozano@google.com> 2025-02-05 02:22:33 +0000
committer Ivan Lozano <ivanlozano@google.com> 2025-02-05 03:13:10 +0000
commit7fe65ca1fe21ee107fa7c59fd21eb7ce8bac0bd6 (patch)
treebe540269a26e3c95a8b670e113f744bf35fb6322 /rust/prebuilt.go
parent1f10f684516b131b5e6aebdf9b7915cf07409510 (diff)
rust: Rename flag providers for clarity
Rename the Rust flag and export info providers to make it more clear when workign with the Rust exporter vs the cc exporter. Also renames a test for additional clarity. Test: m blueprint_tests Change-Id: I652b55ef000a2cd00f47b1dbfe86713c33ae9d63
Diffstat (limited to 'rust/prebuilt.go')
-rw-r--r--rust/prebuilt.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/rust/prebuilt.go b/rust/prebuilt.go
index e35e510da..9bd51115f 100644
--- a/rust/prebuilt.go
+++ b/rust/prebuilt.go
@@ -158,7 +158,7 @@ func (prebuilt *prebuiltLibraryDecorator) compilerProps() []interface{} {
func (prebuilt *prebuiltLibraryDecorator) compile(ctx ModuleContext, flags Flags, deps PathDeps) buildOutput {
prebuilt.flagExporter.exportLinkDirs(android.PathsForModuleSrc(ctx, prebuilt.Properties.Link_dirs).Strings()...)
- prebuilt.flagExporter.setProvider(ctx)
+ prebuilt.flagExporter.setRustProvider(ctx)
srcPath := prebuiltPath(ctx, prebuilt)
prebuilt.baseCompiler.unstrippedOutputFile = srcPath
return buildOutput{outputFile: srcPath}
@@ -211,7 +211,7 @@ func (prebuilt *prebuiltProcMacroDecorator) compilerProps() []interface{} {
func (prebuilt *prebuiltProcMacroDecorator) compile(ctx ModuleContext, flags Flags, deps PathDeps) buildOutput {
prebuilt.flagExporter.exportLinkDirs(android.PathsForModuleSrc(ctx, prebuilt.Properties.Link_dirs).Strings()...)
- prebuilt.flagExporter.setProvider(ctx)
+ prebuilt.flagExporter.setRustProvider(ctx)
srcPath := prebuiltPath(ctx, prebuilt)
prebuilt.baseCompiler.unstrippedOutputFile = srcPath
return buildOutput{outputFile: srcPath}