diff options
| author | 2023-07-18 13:08:08 +0000 | |
|---|---|---|
| committer | 2023-07-18 13:08:08 +0000 | |
| commit | 87987fd05890d9973fa5b6dc7b571c10493978a7 (patch) | |
| tree | dd1a2a135fff06e04b9e0c3d199e10040c7aed0e /rust/binary.go | |
| parent | 0b5ca6ad066d8e4a78da105853a6454036d3de12 (diff) | |
| parent | add122a828941a865daf3ec2531145676472a3cd (diff) | |
Merge "rust: Add vendor and recovery dylib support." into main
Diffstat (limited to 'rust/binary.go')
| -rw-r--r-- | rust/binary.go | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/rust/binary.go b/rust/binary.go index 2de92c17f..e6f153996 100644 --- a/rust/binary.go +++ b/rust/binary.go @@ -158,9 +158,6 @@ func (binary *binaryDecorator) autoDep(ctx android.BottomUpMutatorContext) autoD // Binaries default to dylib dependencies for device, rlib for host. if binary.preferRlib() { return rlibAutoDep - } else if mod, ok := ctx.Module().(*Module); ok && mod.InVendor() { - // Vendor Rust binaries should prefer rlibs. - return rlibAutoDep } else if ctx.Device() { return dylibAutoDep } else { @@ -171,8 +168,6 @@ func (binary *binaryDecorator) autoDep(ctx android.BottomUpMutatorContext) autoD func (binary *binaryDecorator) stdLinkage(ctx *depsContext) RustLinkage { if binary.preferRlib() { return RlibLinkage - } else if ctx.RustModule().InVendor() { - return RlibLinkage } return binary.baseCompiler.stdLinkage(ctx) } |