Move/dedupe some host path functions in package_ctx.go.

These functions don't need a PackageContext object.

Test: m
Bug: 145934348
Change-Id: Ia1da2c76cbad292f9ca79617199b2b5b6b265568
This commit is contained in:
Martin Stjernholm
2019-12-09 21:47:14 +00:00
parent 3a7caaa80c
commit 7260d066ea
6 changed files with 23 additions and 28 deletions

View File

@@ -43,7 +43,7 @@ func init() {
if !ctx.Config().FrameworksBaseDirExists(ctx) {
return filepath.Join(prebuiltDir, runtime.GOOS, "bin", tool)
} else {
return pctx.HostBinToolPath(ctx, tool).String()
return ctx.Config().HostToolPath(ctx, tool).String()
}
})
}