diff options
author | 2022-04-18 20:12:56 -0700 | |
---|---|---|
committer | 2022-04-20 20:02:28 -0700 | |
commit | a76acba5537fdde58cb79d3d0cf5cb5a259b631b (patch) | |
tree | ec116c37678077828983c65df7632d410cc6b115 /rust/proc_macro.go | |
parent | fe118510297de80d59b2bf41d8b93582416b883d (diff) |
Add cross-referencing support for Rust
Bug: 222044478
Test: run TARGET_BUILD_VARIANT=userdebug TARGET_PRODUCT=cf_x86_64_phone XREF_CORPUS=googleplex-android.googlesource.com/codesearch/android build/soong/build_kzip.bash
Change-Id: Ia12eed53fafd0cbbbf2cc499fa20a0f5a40031de
Diffstat (limited to 'rust/proc_macro.go')
-rw-r--r-- | rust/proc_macro.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/rust/proc_macro.go b/rust/proc_macro.go index f8a4bbded..832b62c36 100644 --- a/rust/proc_macro.go +++ b/rust/proc_macro.go @@ -70,14 +70,14 @@ func (procMacro *procMacroDecorator) compilerFlags(ctx ModuleContext, flags Flag return flags } -func (procMacro *procMacroDecorator) compile(ctx ModuleContext, flags Flags, deps PathDeps) android.Path { +func (procMacro *procMacroDecorator) compile(ctx ModuleContext, flags Flags, deps PathDeps) buildOutput { fileName := procMacro.getStem(ctx) + ctx.toolchain().ProcMacroSuffix() outputFile := android.PathForModuleOut(ctx, fileName) srcPath, _ := srcPathFromModuleSrcs(ctx, procMacro.baseCompiler.Properties.Srcs) - TransformSrctoProcMacro(ctx, srcPath, deps, flags, outputFile) + ret := TransformSrctoProcMacro(ctx, srcPath, deps, flags, outputFile) procMacro.baseCompiler.unstrippedOutputFile = outputFile - return outputFile + return ret } func (procMacro *procMacroDecorator) getStem(ctx ModuleContext) string { |