diff options
author | 2022-04-26 09:38:20 -0400 | |
---|---|---|
committer | 2022-05-13 19:47:48 -0400 | |
commit | 3bf97bd1c066cddd49e1ae1936bdeda0fbca805c (patch) | |
tree | 23e9257f1f244f58091938731abf8705ecf2bf78 /rust/library.go | |
parent | d2ee3a6afa9ea50a7bcc19a6e6f7eb0305e8d51c (diff) |
Clean up some bp2build technical debt
Previously we ran mutators in bp2build mode to add dependencies, now we
look up modules by name directly. Remove workarounds to allow bp2build
mode to not fail when adding/handling dependencies.
Test: m bp2build
Change-Id: Ibf6fd905150cac306e5c395902ef28f609f4df2a
Diffstat (limited to 'rust/library.go')
-rw-r--r-- | rust/library.go | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/rust/library.go b/rust/library.go index 1286549c6..c2ce9de6b 100644 --- a/rust/library.go +++ b/rust/library.go @@ -246,10 +246,6 @@ func (library *libraryDecorator) autoDep(ctx android.BottomUpMutatorContext) aut return rlibAutoDep } else if library.dylib() || library.shared() { return dylibAutoDep - } else if ctx.BazelConversionMode() { - // In Bazel conversion mode, we are currently ignoring the deptag, so we just need to supply a - // compatible tag in order to add the dependency. - return rlibAutoDep } else { panic(fmt.Errorf("autoDep called on library %q that has no enabled variants.", ctx.ModuleName())) } |