Merge "Use prebuilt dx for PDK builds"
This commit is contained in:
commit
3615dcb30c
2 changed files with 5 additions and 1 deletions
|
@ -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)
|
||||
}
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue