summaryrefslogtreecommitdiff
path: root/rust/proc_macro.go
diff options
context:
space:
mode:
author Matthew Maurer <mmaurer@google.com> 2020-06-29 14:34:06 -0700
committer Matthew Maurer <mmaurer@google.com> 2020-07-01 11:27:12 -0700
commit0f003b18516df3df3fa631ca6d1e21322d0947cf (patch)
treee27bef149ff927ca9364aef6722263259e1e6ce3 /rust/proc_macro.go
parent2ae0513a8e4f226c2161fb89e85ef997b0881278 (diff)
rust: Add rustlibs auto dependency selection
Adds the rustlibs dependency type which will automatically select between rlib and dylib based on the type of the library. Bug: 143217452 Test: cd external/rust; mma Change-Id: I97faadae98bf957090a32939cfb2d3a10f74a057
Diffstat (limited to 'rust/proc_macro.go')
-rw-r--r--rust/proc_macro.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/rust/proc_macro.go b/rust/proc_macro.go
index 42c8537a9..b04808702 100644
--- a/rust/proc_macro.go
+++ b/rust/proc_macro.go
@@ -76,3 +76,7 @@ func (procMacro *procMacroDecorator) getStem(ctx ModuleContext) string {
return stem + String(procMacro.baseCompiler.Properties.Suffix)
}
+
+func (procMacro *procMacroDecorator) autoDep() autoDep {
+ return rlibAutoDep
+}