summaryrefslogtreecommitdiff
path: root/java/java.go
diff options
context:
space:
mode:
author Treehugger Robot <treehugger-gerrit@google.com> 2017-09-21 05:10:52 +0000
committer Gerrit Code Review <noreply-gerritcodereview@google.com> 2017-09-21 05:10:52 +0000
commitd685385c6baf385c1d87bfa92dcd0f824a2cb09f (patch)
tree3e4e35fe16b6b5398026a68e17a626d8d2053c0d /java/java.go
parent5012c818886d54721baaf9a2ef3523e25ccf9676 (diff)
parenta713a6f6bd02435f3d6bdaf8b4cadc8c10945535 (diff)
Merge "Don't generate dex jars for host modules"
Diffstat (limited to 'java/java.go')
-rw-r--r--java/java.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/java/java.go b/java/java.go
index 326d278c7..43f97acda 100644
--- a/java/java.go
+++ b/java/java.go
@@ -466,7 +466,8 @@ func (j *Module) compile(ctx android.ModuleContext) {
j.classpathFile = outputFile
- if j.deviceProperties.Dex && len(srcFiles) > 0 {
+ // TODO(ccross): handle hostdex
+ if ctx.Device() && len(srcFiles) > 0 {
dxFlags := j.deviceProperties.Dxflags
if false /* emma enabled */ {
// If you instrument class files that have local variable debug information in