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
This commit is contained in:
Colin Cross 2017-09-20 18:04:44 -07:00
parent fc3674a607
commit a713a6f6bd
1 changed files with 2 additions and 1 deletions

View File

@ -466,7 +466,8 @@ func (j *Module) compile(ctx android.ModuleContext) {
j.classpathFile = outputFile j.classpathFile = outputFile
if j.deviceProperties.Dex && len(srcFiles) > 0 { // TODO(ccross): handle hostdex
if ctx.Device() && len(srcFiles) > 0 {
dxFlags := j.deviceProperties.Dxflags dxFlags := j.deviceProperties.Dxflags
if false /* emma enabled */ { if false /* emma enabled */ {
// If you instrument class files that have local variable debug information in // If you instrument class files that have local variable debug information in