diff options
Diffstat (limited to 'rust/binary.go')
-rw-r--r-- | rust/binary.go | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/rust/binary.go b/rust/binary.go index 56d6f0b53..a1cd410c2 100644 --- a/rust/binary.go +++ b/rust/binary.go @@ -131,3 +131,11 @@ func (binary *binaryDecorator) compile(ctx ModuleContext, flags Flags, deps Path func (binary *binaryDecorator) coverageOutputZipPath() android.OptionalPath { return binary.coverageOutputZipFile } + +func (binary *binaryDecorator) autoDep() autoDep { + if binary.preferDynamic() { + return dylibAutoDep + } else { + return rlibAutoDep + } +} |