Use prebuilt turbine jar for unbundled javac builds.

Test: m -j
Change-Id: If2ab85f8591fe7ab275a1d4fefdd80d871f2c36d
This commit is contained in:
Nan Zhang
2017-10-25 11:11:37 -07:00
parent 49a7feb189
commit 9a36418089
2 changed files with 21 additions and 1 deletions

View File

@@ -149,6 +149,15 @@ func (p AndroidPackageContext) HostJavaToolVariable(name, path string) blueprint
})
}
func (p AndroidPackageContext) HostJavaToolPath(config interface{}, path string) (Path, error) {
ctx := &configErrorWrapper{p, config.(Config), []error{}}
pa := PathForOutput(ctx, "host", ctx.config.PrebuiltOS(), "framework", path)
if len(ctx.errors) > 0 {
return nil, ctx.errors[0]
}
return pa, nil
}
// IntermediatesPathVariable returns a Variable whose value is the intermediate
// directory appended with the supplied path. It may only be called during a Go
// package's initialization - either from the init() function or as part of a