summaryrefslogtreecommitdiff
path: root/rust/proc_macro.go
diff options
context:
space:
mode:
author Treehugger Robot <treehugger-gerrit@google.com> 2020-07-10 18:28:50 +0000
committer Gerrit Code Review <noreply-gerritcodereview@google.com> 2020-07-10 18:28:50 +0000
commit21143a601c47ef30106aad75c8089cb5cf0acc05 (patch)
tree644dff55b3fca4404479dfc5abed0b8a6efa1ea1 /rust/proc_macro.go
parented62b9cc2a24dd0874f8689902bad759a722497a (diff)
parentbbd25aeb428edaa7fb332cc0a6771aeede38e286 (diff)
Merge "Specify module dependency in the srcs list"
Diffstat (limited to 'rust/proc_macro.go')
-rw-r--r--rust/proc_macro.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/rust/proc_macro.go b/rust/proc_macro.go
index 2719161e5..49dbd8dc2 100644
--- a/rust/proc_macro.go
+++ b/rust/proc_macro.go
@@ -65,7 +65,8 @@ func (procMacro *procMacroDecorator) compile(ctx ModuleContext, flags Flags, dep
fileName := procMacro.getStem(ctx) + ctx.toolchain().ProcMacroSuffix()
outputFile := android.PathForModuleOut(ctx, fileName)
- srcPath := srcPathFromModuleSrcs(ctx, procMacro.baseCompiler.Properties.Srcs)
+ srcPath, paths := srcPathFromModuleSrcs(ctx, procMacro.baseCompiler.Properties.Srcs)
+ deps.SrcDeps = paths
procMacro.unstrippedOutputFile = outputFile