diff options
| author | 2017-09-20 18:04:44 -0700 | |
|---|---|---|
| committer | 2017-09-20 18:08:04 -0700 | |
| commit | a713a6f6bd02435f3d6bdaf8b4cadc8c10945535 (patch) | |
| tree | 401574e329f85bbf1a163e6050598403507e8177 /java/java.go | |
| parent | fc3674a607d246dff0f415f50e35f2e988ecf7bf (diff) | |
Don't generate dex jars for host modules
Hostdex support isn't working yet, and we are accidentally producing
a dex jar for host modules, which confuses soong_java_prebuilt.mk.
Test: m -j checkbuild
Change-Id: Ie2c331fa697f49dab23c380a5c6e0490d67c9f74
Diffstat (limited to 'java/java.go')
| -rw-r--r-- | java/java.go | 3 |
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 |