diff options
author | 2021-11-11 09:29:07 -0500 | |
---|---|---|
committer | 2021-11-12 08:58:17 -0500 | |
commit | fba2aa255cd2f2bf33fa29fc937a0c29e11bb7ea (patch) | |
tree | 8aee4a266390abdcc4bf467626b86fb21fa51644 /rust/rust.go | |
parent | 45da465ef6eece7e794125d1d4d5223609086b06 (diff) |
rust: Support new rust_stdlib_prebuilt_host type
Refactor Rust prebuilts to support the new rust_stdlib_prebuilt_host
module type, and change the format for depending on the prebuilt host
stdlibs.
Bug: 140642453
Test: m
Change-Id: Ifbc4741818777934e917631c788b20911856c44a
Diffstat (limited to 'rust/rust.go')
-rw-r--r-- | rust/rust.go | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/rust/rust.go b/rust/rust.go index b3e543ee9..3cc786878 100644 --- a/rust/rust.go +++ b/rust/rust.go @@ -1019,6 +1019,13 @@ func (mod *Module) begin(ctx BaseModuleContext) { } } +func (mod *Module) Prebuilt() *android.Prebuilt { + if p, ok := mod.compiler.(*prebuiltLibraryDecorator); ok { + return p.prebuilt() + } + return nil +} + func (mod *Module) depsToPaths(ctx android.ModuleContext) PathDeps { var depPaths PathDeps |