Merge "Add HostToolPath() for Python binary"

This commit is contained in:
Treehugger Robot
2017-12-07 00:43:51 +00:00
committed by Gerrit Code Review

View File

@@ -242,6 +242,14 @@ func versionSplitMutator() func(android.BottomUpMutatorContext) {
}
}
func (p *Module) HostToolPath() android.OptionalPath {
if p.installer == nil {
// python_library is just meta module, and doesn't have any installer.
return android.OptionalPath{}
}
return android.OptionalPathForPath(p.installer.(*binaryDecorator).path)
}
func (p *Module) isEmbeddedLauncherEnabled(actual_version string) bool {
switch actual_version {
case pyVersion2: