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
This commit is contained in:
@@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user