diff options
author | 2020-08-18 14:31:23 -0400 | |
---|---|---|
committer | 2020-08-25 13:32:53 -0400 | |
commit | 042504f7d60857dd3d6292d56b3356a8a2d617d0 (patch) | |
tree | 5b8584d2c974db83080330c2b93e08b22711ced2 /rust/proc_macro.go | |
parent | f5a2b8a64113630ce0d8d5922f96e951fb2c9f12 (diff) |
Link device binaries dynamically by default.
Device binaries currently are linked statically by default. Instead we
should be linking these dynamic by default. To avoid conflicts when
manually specifying rlib dependencies on modules, we always link libstd
dynamically for all device modules except static libraries.
This removes the "prefer_dynamic" property entirely to avoid confusion.
Bug: 165161105
Test: m profcollectd is built dynamically.
Test: cd external/rust/; mma
Test: cd external/crosvm/; mma
Change-Id: I25ac897040acbcc2d97c791a33e8e01610632272
Diffstat (limited to 'rust/proc_macro.go')
-rw-r--r-- | rust/proc_macro.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/rust/proc_macro.go b/rust/proc_macro.go index 3dd2521a3..748879cc8 100644 --- a/rust/proc_macro.go +++ b/rust/proc_macro.go @@ -80,6 +80,6 @@ func (procMacro *procMacroDecorator) getStem(ctx ModuleContext) string { return stem + String(procMacro.baseCompiler.Properties.Suffix) } -func (procMacro *procMacroDecorator) autoDep() autoDep { +func (procMacro *procMacroDecorator) autoDep(ctx BaseModuleContext) autoDep { return rlibAutoDep } |