Merge "Use prebuilt dx for PDK builds"

This commit is contained in:
Treehugger Robot 2017-10-24 19:17:49 +00:00 committed by Gerrit Code Review
commit 3615dcb30c
2 changed files with 5 additions and 1 deletions

View file

@ -496,6 +496,10 @@ func (c *config) UnbundledBuild() bool {
return Bool(c.ProductVariables.Unbundled_build)
}
func (c *config) IsPdkBuild() bool {
return Bool(c.ProductVariables.Pdk)
}
func (c *config) DevicePrefer32BitExecutables() bool {
return Bool(c.ProductVariables.DevicePrefer32BitExecutables)
}

View file

@ -83,7 +83,7 @@ func init() {
if config.(android.Config).Getenv("USE_D8") == "true" {
dexer = "d8"
}
if config.(android.Config).UnbundledBuild() {
if config.(android.Config).UnbundledBuild() || config.(android.Config).IsPdkBuild() {
return "prebuilts/build-tools/common/bin/" + dexer, nil
} else {
path, err := pctx.HostBinToolPath(config, dexer)